/* Auth — mobile design tokens (navy + sage) */
:root {
  --auth-navy: #142536;
  --auth-ink: #111315;
  --auth-secondary: #66758a;
  --auth-muted: #8b98a8;
  --auth-bg: #eaf1f7;
  --auth-white: #ffffff;
  --auth-sage: #bbd6b0;
  --auth-sage-dark: #5fb85a;
  --auth-sage-light: #edf5e9;
  --auth-soft-blue: #eaf1f8;
  --auth-error: #c95656;
  --auth-error-light: #fceeee;
  --auth-success: #3dba47;
  --auth-radius: 1.25rem;
  --auth-radius-sm: 0.85rem;
  --auth-shadow: 0 12px 32px rgba(20, 37, 54, 0.08);
  --auth-font: "Inter", "Segoe UI", system-ui, sans-serif;
}

.auth-page {
  min-height: 100vh;
  display: flex;
  font-family: var(--auth-font);
  background: var(--auth-bg);
  color: var(--auth-ink);
}

.auth-brand {
  flex: 1 1 46%;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.25rem 2.75rem;
  background: var(--auth-navy);
  color: var(--auth-white);
  position: relative;
  overflow: hidden;
}

@media (min-width: 992px) {
  .auth-brand {
    display: flex;
  }
}

.auth-brand::before {
  content: "";
  position: absolute;
  width: 22rem;
  height: 22rem;
  right: -6rem;
  top: -7rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(187, 214, 176, 0.28) 0%, transparent 68%);
  pointer-events: none;
}

.auth-brand::after {
  content: "";
  position: absolute;
  width: 18rem;
  height: 18rem;
  left: -5rem;
  bottom: -4rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(234, 241, 248, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.auth-brand > * {
  position: relative;
  z-index: 1;
}

.auth-brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.auth-brand-mark {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.85rem;
  background: rgba(187, 214, 176, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  color: var(--auth-sage);
  border: 1px solid rgba(187, 214, 176, 0.28);
}

.auth-brand-name {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.auth-brand-tagline {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.62);
  font-weight: 500;
}

.auth-brand-hero h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 0.85rem;
  max-width: 22rem;
}

.auth-brand-hero p {
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
  max-width: 24rem;
  margin-bottom: 0;
}

.auth-brand-features {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0;
}

.auth-brand-features li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 0.65rem;
}

.auth-brand-features i {
  color: var(--auth-sage);
  font-size: 0.75rem;
}

.auth-brand-footer {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.42);
}

.auth-main {
  flex: 1 1 54%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
}

@media (max-width: 991px) {
  .auth-main {
    padding: 1.5rem 1rem;
    align-items: flex-start;
    padding-top: 2rem;
  }

  .auth-card-header h1 {
    font-size: 1.45rem;
  }

  .auth-form-field .form-control,
  .auth-form-field select.form-control,
  .auth-submit {
    min-height: 48px;
    font-size: 1rem;
  }
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--auth-white);
  border-radius: var(--auth-radius);
  padding: 1.65rem 1.5rem 1.4rem;
  box-shadow: var(--auth-shadow);
  border: 1px solid rgba(20, 37, 54, 0.04);
}

.auth-mobile-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.auth-mobile-logo .auth-brand-mark {
  background: var(--auth-sage-light);
  border-color: rgba(187, 214, 176, 0.7);
  color: var(--auth-navy);
}

.auth-mobile-logo .auth-brand-name {
  color: var(--auth-ink);
  font-size: 1rem;
}

.auth-mobile-logo .auth-brand-tagline {
  color: var(--auth-secondary);
}

@media (min-width: 992px) {
  .auth-mobile-logo {
    display: none;
  }
}

.auth-card-header {
  margin-bottom: 1.5rem;
}

.auth-card-header h1 {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--auth-ink);
  margin-bottom: 0.3rem;
}

.auth-card-header p {
  font-size: 0.9375rem;
  color: var(--auth-secondary);
  margin-bottom: 0;
}

.auth-form-field {
  margin-bottom: 1.05rem;
}

.auth-form-field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--auth-navy);
  margin-bottom: 0.4rem;
}

.auth-form-field .form-control,
.auth-form-field select.form-control {
  height: 2.85rem;
  border: 1px solid #d7e0e8;
  border-radius: var(--auth-radius-sm);
  font-size: 0.9375rem;
  padding: 0.5rem 0.875rem;
  background: var(--auth-soft-blue);
  color: var(--auth-ink);
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.auth-form-field .form-control:focus,
.auth-form-field select.form-control:focus {
  background: var(--auth-white);
  border-color: var(--auth-navy);
  box-shadow: 0 0 0 3px rgba(20, 37, 54, 0.1);
}

.auth-input-wrap {
  position: relative;
}

.auth-input-wrap .form-control {
  padding-right: 2.5rem;
}

.auth-input-wrap .auth-input-icon {
  position: absolute;
  right: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--auth-muted);
  font-size: 0.875rem;
  pointer-events: none;
}

.auth-submit {
  width: 100%;
  height: 2.85rem;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 999px;
  background: var(--auth-navy);
  border: none;
  color: var(--auth-white);
  margin-top: 0.45rem;
  box-shadow: 0 8px 18px rgba(20, 37, 54, 0.22);
  transition: background 0.15s, box-shadow 0.15s, transform 0.15s;
}

.auth-submit:hover {
  background: #1c3548;
  box-shadow: 0 10px 22px rgba(20, 37, 54, 0.28);
  color: var(--auth-white);
}

.auth-submit:active {
  transform: translateY(1px);
}

.auth-links {
  text-align: center;
  margin-top: 1.35rem;
  font-size: 0.8125rem;
  color: var(--auth-muted);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.auth-links a {
  color: var(--auth-navy);
  font-weight: 600;
  text-decoration: none;
}

.auth-links a:hover {
  color: var(--auth-sage-dark);
  text-decoration: underline;
}

.auth-validation {
  font-size: 0.8125rem;
  margin-bottom: 1rem;
  color: var(--auth-error) !important;
}

.auth-validation ul {
  margin-bottom: 0;
  padding-left: 1.1rem;
}

.auth-alert {
  border-radius: var(--auth-radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
  margin-top: 1rem;
}

.auth-alert-success {
  background: var(--auth-sage-light);
  color: #246b32;
  border: 1px solid var(--auth-sage);
}

.auth-alert-info {
  background: var(--auth-soft-blue);
  color: var(--auth-navy);
  border: 1px solid #d7e0e8;
  text-align: left;
}

.auth-dev-hint {
  margin-top: 1.35rem;
  border: 1px dashed #d7e0e8;
  border-radius: var(--auth-radius-sm);
  background: var(--auth-soft-blue);
}

.auth-dev-hint summary {
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--auth-secondary);
  padding: 0.65rem 0.875rem;
  user-select: none;
}

.auth-dev-hint summary:hover {
  color: var(--auth-navy);
}

.auth-dev-hint .auth-dev-body {
  padding: 0 0.875rem 0.75rem;
  font-size: 0.75rem;
  color: var(--auth-secondary);
  line-height: 1.6;
}

.auth-dev-hint code {
  background: var(--auth-white);
  padding: 0.1em 0.35em;
  border-radius: 0.25rem;
  font-size: 0.7rem;
  color: var(--auth-navy);
}

.auth-icon-success {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--auth-sage-light);
  color: var(--auth-sage-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin: 0 auto 1.25rem;
}

.auth-text-center {
  text-align: center;
}
