.gate {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #f4f7fb;
}

.gate-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 16px 72px;
}

.gate-card {
  width: min(480px, 100%);
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 20px 50px #2b65a61a;
}

.gate-card h1 {
  margin: 8px 0;
  font-size: 28px;
  line-height: 1.2;
  color: #092753;
}

.gate-card .lead {
  margin: 0 0 8px;
  color: #52647e;
  font-size: 14px;
  line-height: 1.5;
}

.gate-card label {
  display: block;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: #092753;
}

.gate-card input {
  width: 100%;
  margin-top: 6px;
  border: 1px solid #d5deea;
  border-radius: 8px;
  padding: 12px 14px;
  font: inherit;
  color: #092753;
  background: #fff;
}

.gate-card input:focus {
  outline: 2px solid #2e7ef733;
  border-color: #2e7ef7;
}

.password-field {
  position: relative;
  margin-top: 6px;
}

.gate-card .password-field input {
  margin-top: 0;
  padding-right: 44px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #52647e;
  cursor: pointer;
}

.password-toggle:hover {
  color: #092753;
  background: #f4f7fb;
}

.password-toggle [hidden] {
  display: none;
}

.gate-card .error {
  margin: 6px 0 0;
  color: #b42318;
  font-size: 13px;
}

.gate-card button.btn {
  width: 100%;
  margin-top: 22px;
  cursor: pointer;
  font-family: inherit;
}

.subdomain-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.subdomain-row input {
  flex: 1;
}

.subdomain-row span {
  color: #52647e;
  font-size: 14px;
  white-space: nowrap;
}

.gate-links {
  margin: 18px 0 0;
  font-size: 14px;
  color: #52647e;
}

.gate-links a {
  color: #2e7ef7;
  font-weight: 600;
  text-decoration: none;
}

.gate-forgot {
  margin: 8px 0 0;
  text-align: right;
  font-size: 13px;
}

.gate-forgot a {
  color: #2e7ef7;
  font-weight: 600;
  text-decoration: none;
}

.gate-note {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #e8f2ff;
  color: #092753;
  font-size: 14px;
}

.gate-card.gate-wide {
  width: min(640px, 100%);
}

.group-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.group-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 110px;
  padding: 18px;
  border: 1px solid #d5deea;
  border-radius: 12px;
  background: #fff;
  color: #092753;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}

.group-option:hover {
  border-color: #2e7ef7;
}

.group-option img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.group-option small {
  color: #52647e;
  font-size: 13px;
  font-weight: 400;
}

.group-option-base {
  border-style: dashed;
}

.field-hint {
  margin: 6px 0 0;
  color: #52647e;
  font-size: 13px;
}

.landing-actions {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.landing-actions .btn {
  display: block;
  text-align: center;
}

.acceso-tabs {
  display: flex;
  gap: 24px;
  margin-bottom: 8px;
  border-bottom: 1px solid #d5deea;
}

.acceso-tabs a {
  margin-bottom: -1px;
  padding: 10px 0;
  border-bottom: 2px solid transparent;
  color: #52647e;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.acceso-tabs a[aria-current="page"] {
  border-bottom-color: #2e7ef7;
  color: #092753;
}

.password-rules {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: #52647e;
}

.password-rules li {
  position: relative;
  padding-left: 22px;
  line-height: 1.7;
}

.password-rules li::before {
  content: "○";
  position: absolute;
  left: 0;
  color: #9aa8b8;
}

.password-rules li.ok {
  color: #1e7b4f;
}

.password-rules li.ok::before {
  content: "✓";
  color: #1e7b4f;
}

.password-match {
  margin: 6px 0 0;
  font-size: 13px;
  color: #52647e;
}

.password-match.ok {
  color: #1e7b4f;
}

.password-match.error {
  color: #b42318;
}
