/* ---- Sign In page ---- */

.auth-body {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: var(--ink-50); padding: 32px;
}

.auth-card {
  display: grid; grid-template-columns: 35% 65%;
  width: 100%; max-width: 960px; min-height: 600px;
  background: var(--white); border-radius: var(--r-card);
  box-shadow: var(--shadow-card-lg); overflow: hidden;
}

/* --- LEFT PANEL --- */
.auth-hero {
  position: relative; padding: 40px;
  background-image:
    linear-gradient(180deg, rgba(14,42,31,.20), rgba(14,42,31,.45)),
    url("/img/auth-forest.png");
  background-size: cover; background-position: center;
  background-color: var(--green-950);
  color: var(--white); display: flex; flex-direction: column; gap: 28px;
}

.auth-hero__logo {
  display: inline-flex; align-items: center;
}
.auth-hero__logo img { height: 32px; width: auto; }

.auth-hero__title {
  font-family: var(--font-serif); font-weight: 600;
  font-size: 40px; line-height: 48px;
  color: var(--white); margin: 0;
}
.auth-hero__title .accent { color: var(--green-300); }

.auth-hero__sub {
  font-size: 15px; line-height: 22px; color: rgba(255,255,255,.82);
  max-width: 320px; margin: 0;
}

.auth-hero__features { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.auth-hero__features li { display: flex; align-items: center; gap: 14px; font-size: 15px; }

.feat-tile {
  width: 32px; height: 32px; border-radius: 999px;
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.18);
  display: inline-flex; align-items: center; justify-content: center; color: var(--white);
}
.feat-tile svg { width: 16px; height: 16px; stroke-width: 1.75; }
.feat-tile--sm { width: 28px; height: 28px; }

.auth-hero__secure {
  display: flex; align-items: center; gap: 12px;
  padding-top: 16px; border-top: 1px solid rgba(255,255,255,.15);
  font-size: 13px; line-height: 18px; color: rgba(255,255,255,.82);
}

.auth-hero__trust {
  margin-top: auto;
  padding-top: 20px;
}

.trust-badge {
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 16px; max-width: 200px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r-tile);
  color: var(--white);
  text-align: left;
}

.trust-card {
  margin-top: auto;
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px; max-width: 230px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-tile);
}
.trust-card svg { width: 22px; height: 22px; color: var(--white); stroke-width: 1.75; flex: 0 0 auto; }
.trust-card strong { font-weight: 600; font-size: 13px; }
.trust-card span { font-size: 13px; color: rgba(255,255,255,.78); }
.stars { color: var(--green-300); letter-spacing: 2px; margin-top: 6px; font-size: 13px; }

/* --- RIGHT PANEL --- */
.auth-form { background: var(--white); display: flex; align-items: center; justify-content: center; padding: 56px 72px; }
.auth-form__inner { width: 100%; max-width: 420px; }
.auth-form h2 { font-family: var(--font-serif); font-size: 28px; line-height: 36px; color: var(--ink-900); margin: 0 0 12px; border: none; border-bottom: none; box-shadow: none; text-decoration: none; }
.auth-form__title { font-family: var(--font-serif); font-size: 28px; line-height: 36px; color: var(--ink-900); margin: 0 0 12px; border: none; border-bottom: none; box-shadow: none; text-decoration: none; }
.auth-form__sub { font-size: 13px; line-height: 20px; color: var(--ink-500); margin: 0 0 32px; }
.auth-form__signup { font-size: 13px; color: var(--ink-500); text-align: center; margin: 28px 0 0; }
.auth-form__signup a { color: var(--green-700); }

/* OTP step styles */
.auth-otp-label { font-size: 13px; font-weight: 500; color: var(--ink-700); text-align: center; margin-bottom: 8px; }
.auth-otp-digits { display: flex; justify-content: center; gap: 8px; margin-bottom: 12px; }
.otp-box {
  width: 44px; height: 48px; text-align: center;
  font-size: 20px; font-weight: 600; color: var(--ink-900);
  border: 1px solid var(--ink-300); border-radius: var(--r-input);
  background: var(--white);
}
.otp-box:focus { outline: none; border-color: var(--green-700); box-shadow: var(--focus-ring); }
.otp-box.filled { border-color: var(--green-700); }

.auth-resend { text-align: center; margin-top: 16px; font-size: 13px; color: var(--ink-500); }
.auth-resend p { margin: 0 0 4px; }
.auth-resend-link {
  background: none; border: none; padding: 0;
  color: var(--green-700); font-size: 13px; font-weight: 500;
  cursor: pointer; text-decoration: underline;
}
.auth-resend-note { display: block; font-size: 12px; color: var(--ink-500); margin-top: 4px; }

/* Alert styles for auth page */
.auth-alert {
  padding: 12px 14px; border-radius: var(--r-input);
  font-size: 13px; line-height: 18px; margin-bottom: 16px;
}
.auth-alert--error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.auth-alert--success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.auth-alert--warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.auth-alert--info { background: var(--ink-50); color: var(--ink-700); border: 1px solid var(--ink-200); }

/* Validation error text */
.auth-validation { font-size: 12px; color: #991b1b; margin-top: 4px; }

/* --- responsive --- */
@media (max-width: 880px) {
  .auth-body { padding: 0; background: var(--white); align-items: flex-start; }
  .auth-card { grid-template-columns: 1fr; min-height: 0; border-radius: 0; box-shadow: none; width: 100%; }
  .auth-hero { padding: 32px; gap: 20px; }
  .auth-hero__features { display: none; }
  .auth-form { padding: 24px; }
  .auth-form__inner { max-width: 100%; }
  .trust-card { display: none; }
  .auth-hero__trust { display: none; }
}
@media (max-width: 480px) {
  .auth-hero { padding: 24px; }
  .auth-hero__title { font-size: 28px; line-height: 36px; }
  .auth-form { padding: 20px; }
}
