.auth-card-container { max-width: 520px; }
.auth-card-container-wide { max-width: 640px; }

.auth-card {
  background: var(--dark-2);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 2rem;
}

.auth-card-head {
  text-align: center;
  margin-bottom: 1.5rem;
}

.auth-card-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.2rem;
  letter-spacing: 2px;
  color: var(--text-light);
}

.auth-card-subtitle {
  color: var(--text-muted);
  margin: .25rem 0 0;
  font-size: .9rem;
}

.auth-form-group { margin-bottom: 1rem; }
.auth-form-group-spaced { margin-bottom: 1.4rem; }
.auth-submit { width: 100%; justify-content: center; text-align: center; }

.auth-password-field {
  position: relative;
}

.auth-password-field .pub-input {
  padding-right: 3.1rem;
}

.auth-password-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  height: 2.5rem;
  justify-content: center;
  padding: 0;
  position: absolute;
  right: .45rem;
  top: 50%;
  transform: translateY(-50%);
  transition: color .2s, background .2s;
  width: 2.5rem;
}

.auth-password-toggle:hover,
.auth-password-toggle:focus-visible {
  color: var(--gold);
}

.auth-password-toggle:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--gold) 55%, transparent);
  outline-offset: 2px;
}

.auth-forgot-row {
  display: flex;
  justify-content: flex-end;
  margin: -.35rem 0 1rem;
}

.auth-forgot-row a {
  color: var(--gold);
  font-size: .86rem;
  font-weight: 700;
  text-decoration: none;
}

.pub-input.auth-input-invalid {
  border-color: #ff2d55;
  box-shadow: 0 0 0 1px rgba(255, 45, 85, .18);
}

.auth-field-error {
  min-height: 1.15rem;
  margin-top: .35rem;
  color: #ff4d6d;
  font-size: .8rem;
  line-height: 1.35;
}

.auth-card-footer {
  border-top: 1px solid var(--border-soft);
  margin-top: 1.5rem;
  padding-top: 1rem;
  color: var(--text-muted);
  font-size: .82rem;
  line-height: 1.5;
}

.auth-card-footer-centered { text-align: center; }

.auth-card-footer a {
  color: var(--gold);
  font-weight: 700;
  text-decoration: none;
}

.recovery-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .6rem;
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.recovery-steps li {
  color: var(--text-muted);
  display: grid;
  gap: .45rem;
  min-width: 0;
}

.recovery-steps span {
  align-items: center;
  background: var(--dark-3);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  color: var(--text-muted);
  display: inline-flex;
  font-size: .78rem;
  font-weight: 800;
  height: 2rem;
  justify-content: center;
  width: 2rem;
}

.recovery-steps strong {
  font-size: .76rem;
  font-weight: 700;
  line-height: 1.25;
}

.recovery-steps .is-active span,
.recovery-steps .is-done span {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--button-text);
}

.recovery-steps .is-active strong,
.recovery-steps .is-done strong {
  color: var(--text-light);
}

.recovery-summary {
  border-left: 3px solid var(--gold);
  margin-bottom: 1.4rem;
  padding-left: 1rem;
}

.recovery-summary p,
.recovery-note {
  color: var(--text-muted);
  font-size: .92rem;
  line-height: 1.5;
  margin: 0 0 1rem;
}

.recovery-summary dl {
  display: grid;
  gap: .65rem;
  margin: 0;
}

.recovery-summary dl > div {
  display: grid;
  gap: .2rem;
}

.recovery-summary dt {
  color: var(--text-muted);
  font-size: .74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.recovery-summary dd {
  color: var(--text-light);
  font-weight: 700;
  margin: 0;
  overflow-wrap: anywhere;
}

.recovery-code-input {
  font-size: 1.2rem;
  font-weight: 800;
  text-align: center;
}

.recovery-resend-form {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.registro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.registro-grid .full-row { grid-column: 1 / -1; }

@media (max-width: 640px) {
  .registro-grid {
    grid-template-columns: 1fr !important;
  }

  .recovery-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
