:root {
  --auth-ink: #0c1f24;
  --auth-muted: #5a7278;
  --auth-line: rgba(12, 31, 36, 0.12);
  --auth-surface: #eef5f4;
  --auth-panel: #ffffff;
  --auth-accent: #0e7c7b;
  --auth-accent-deep: #095e5d;
  --auth-glow: rgba(14, 124, 123, 0.28);
  --auth-danger: #b42318;
  --auth-success: #067647;
  --auth-font-display: "Fraunces", Georgia, serif;
  --auth-font-body: "Sora", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body.auth-body {
  margin: 0;
  font-family: var(--auth-font-body);
  color: var(--auth-ink);
  background:
    radial-gradient(circle at 12% 18%, rgba(14, 124, 123, 0.16), transparent 36%),
    radial-gradient(circle at 88% 80%, rgba(9, 94, 93, 0.12), transparent 40%),
    linear-gradient(160deg, #f7fbfa 0%, #e8f2f1 55%, #dfeceb 100%);
  -webkit-font-smoothing: antialiased;
}

.auth-shell,
.auth-shell--single {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
}

.auth-hero {
  display: none !important;
}

.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 3rem);
  position: relative;
}

.auth-card {
  width: min(100%, 560px);
  position: relative;
  z-index: 1;
  background: var(--auth-panel);
  border: 1px solid rgba(12, 31, 36, 0.06);
  border-radius: 20px;
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  box-shadow: 0 18px 50px rgba(12, 31, 36, 0.08);
  animation: authFormIn 650ms ease both;
}

.auth-card__brand,
.auth-card__logo-mobile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.65rem;
  margin: 0 auto 1.5rem;
  width: 100%;
}

.auth-card__brand img,
.auth-card__logo-mobile img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.auth-card__brand span,
.auth-card__logo-mobile span {
  font-family: var(--auth-font-display);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.auth-card__eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--auth-accent);
  font-weight: 600;
}

.auth-card__title {
  margin: 0 0 0.55rem;
  font-family: var(--auth-font-display);
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.auth-card__sub {
  margin: 0 0 1.6rem;
  color: var(--auth-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.auth-alert {
  border-radius: 12px;
  padding: 0.9rem 1rem;
  margin-bottom: 1.1rem;
  font-size: 0.9rem;
  border: 1px solid transparent;
}

.auth-alert ul {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
}

.auth-alert--danger {
  background: #fff5f4;
  border-color: rgba(180, 35, 24, 0.18);
  color: var(--auth-danger);
}

.auth-alert--success {
  background: #ecfdf3;
  border-color: rgba(6, 118, 71, 0.18);
  color: var(--auth-success);
}

.auth-alert h5 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.auth-field {
  margin-bottom: 1rem;
}

.auth-field label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--auth-ink);
}

.auth-field input[type="email"],
.auth-field input[type="password"],
.auth-field input[type="text"] {
  width: 100%;
  height: 52px;
  border: 1px solid var(--auth-line);
  border-radius: 12px;
  background: #fbfdfd;
  padding: 0 1rem;
  font: inherit;
  color: var(--auth-ink);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.auth-field input:focus {
  border-color: rgba(14, 124, 123, 0.55);
  box-shadow: 0 0 0 4px var(--auth-glow);
}

.auth-field.is-invalid input {
  border-color: rgba(180, 35, 24, 0.55);
}

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.35rem 0 1.4rem;
  flex-wrap: wrap;
}

.auth-check {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--auth-muted);
  font-size: 0.9rem;
  cursor: pointer;
  user-select: none;
}

.auth-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--auth-accent);
}

.auth-link {
  color: var(--auth-accent-deep);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 160ms ease;
}

.auth-link:hover {
  color: var(--auth-accent);
}

.auth-btn {
  width: 100%;
  height: 54px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--auth-accent) 0%, var(--auth-accent-deep) 100%);
  color: #fff;
  font: inherit;
  font-weight: 650;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(14, 124, 123, 0.28);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.auth-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(14, 124, 123, 0.34);
  filter: brightness(1.03);
}

.auth-btn:active {
  transform: translateY(0);
}

.auth-footer-note {
  margin-top: 1.5rem;
  text-align: center;
  color: var(--auth-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.25rem;
  color: var(--auth-accent-deep);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}

.auth-gender {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1rem;
  color: var(--auth-muted);
  font-size: 0.92rem;
}

.auth-gender label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
}

@keyframes authFormIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 560px) {
  .auth-panel {
    padding: 1.1rem;
  }

  .auth-card {
    border-radius: 16px;
    padding: 1.25rem;
  }
}
