/* ════════════════════════════════════════════════════════════
   AUTH PAGES — login & register, split-screen design
   Loaded ONLY on /auth/login and /auth/register
   ════════════════════════════════════════════════════════════ */

.auth-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - var(--nav-height) - 40px);
}

/* ── Left panel: teal gradient with feature list ── */
.auth-left {
  background: linear-gradient(160deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  padding: 3rem;
  position: relative;
  overflow: hidden;
}
.auth-left::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(500px 400px at 10% 10%, rgba(255,255,255,.12), transparent),
    radial-gradient(400px 350px at 90% 90%, rgba(255,255,255,.08), transparent);
  pointer-events: none;
}
.auth-left-content { position: relative; z-index: 1; max-width: 440px; }
.auth-left-content h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800;
  margin: 0 0 .75rem; line-height: 1.2;
}
.auth-left-content > p {
  font-size: 1rem; opacity: .92; margin: 0 0 2rem; line-height: 1.6;
}

.auth-features { list-style: none; padding: 0; margin: 0 0 2.5rem; display: flex; flex-direction: column; gap: 1.1rem; }
.auth-features li {
  display: flex; align-items: flex-start; gap: .75rem;
  font-size: .95rem; line-height: 1.5;
}

.trust-badge {
  display: inline-block; font-size: .85rem; font-weight: 600;
  color: rgba(255,255,255,.85);
  padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.2);
  margin: 0;
}

/* ── Right panel: form card ── */
.auth-right {
  display: flex; align-items: center; justify-content: center;
  padding: 3rem 2rem; background: var(--bg);
}
.auth-box { width: 100%; max-width: 440px; }

.auth-back {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .88rem; font-weight: 600; color: var(--text-muted);
  text-decoration: none; margin-bottom: 2rem;
}
.auth-back:hover { color: var(--primary); }

.auth-box h1 { font-size: 1.8rem; font-weight: 800; color: var(--ink); margin: 0 0 .4rem; }
.auth-box > p { color: var(--text-muted); font-size: .95rem; margin: 0 0 1.5rem; }

/* Sign In / Sign Up tab switcher */
.auth-tabs {
  display: flex; background: var(--bg-alt); border-radius: 10px;
  padding: 4px; margin-bottom: 1.75rem;
}
.auth-tab {
  flex: 1; text-align: center; padding: .65rem; border-radius: 8px;
  font-size: .9rem; font-weight: 700; color: var(--text-muted);
  text-decoration: none; border: none; background: transparent;
  cursor: pointer; font-family: var(--font); transition: all .15s ease;
}
.auth-tab.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.auth-tab:not(.active):hover { color: var(--text); }

/* Form fields */
.auth-form { display: flex; flex-direction: column; }
.form-group { margin-bottom: 1.1rem; }
.form-group label {
  display: block; font-size: .85rem; font-weight: 700;
  color: var(--ink); margin-bottom: .4rem;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="tel"] {
  width: 100%; border: 1px solid var(--border); border-radius: 10px;
  padding: .7rem .9rem; font-size: .92rem; font-family: var(--font);
  background: var(--surface); color: var(--text);
  transition: border-color .15s ease;
}
.form-group input:focus { outline: none; border-color: var(--primary); }
.form-group input::placeholder { color: var(--text-light); }

.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.input-with-icon { position: relative; }
.input-with-icon input { padding-right: 2.75rem; width: 100%; }
.toggle-pwd {
  position: absolute; right: .5rem; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; font-size: 1rem;
  color: var(--text-light); padding: .4rem; line-height: 1;
}
.toggle-pwd:hover { color: var(--text); }

.form-link {
  display: inline-block; font-size: .82rem; font-weight: 600;
  color: var(--primary); text-decoration: none; margin-top: .4rem;
}
.form-link:hover { text-decoration: underline; }

.form-check { margin-bottom: 1.1rem; }
.form-check label {
  display: flex; align-items: flex-start; gap: .5rem;
  font-size: .85rem; color: var(--text-muted); cursor: pointer; line-height: 1.5;
}
.form-check input[type="checkbox"] { margin-top: .2rem; accent-color: var(--primary); flex-shrink: 0; }
.form-check a { color: var(--primary); font-weight: 600; }

.g-recaptcha { margin-bottom: 1.1rem; }

.form-alt {
  text-align: center; font-size: .88rem; color: var(--text-muted);
  margin: 1rem 0 0;
}
.form-alt a { color: var(--primary); font-weight: 700; }

/* Divider + Google button */
.auth-divider {
  display: flex; align-items: center; gap: 1rem;
  margin: 1.5rem 0; color: var(--text-light); font-size: .75rem;
  font-weight: 700; letter-spacing: .04em;
}
.auth-divider::before, .auth-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--border);
}

.btn-google {
  display: flex; align-items: center; justify-content: center; gap: .65rem;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); font-weight: 600; font-size: .92rem;
  padding: .75rem; border-radius: 10px; text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.btn-google:hover { border-color: var(--text-light); box-shadow: var(--shadow-sm); color: var(--text); }
.btn-google img { flex-shrink: 0; }

.auth-legal {
  text-align: center; font-size: .78rem; color: var(--text-light);
  line-height: 1.6; margin: 1.5rem 0 0;
}
.auth-legal a { color: var(--text-muted); text-decoration: underline; }

/* ── Responsive: stack on mobile, hide the teal panel ── */
@media (max-width: 900px) {
  .auth-page { grid-template-columns: 1fr; min-height: auto; }
  .auth-left { display: none; }
  .auth-right { padding: 2rem 1.25rem 3rem; }
  .form-row-2 { grid-template-columns: 1fr; }
}