/* ===================================================
   JONOM — Login Page (Mockup-matched copy)
   login-copy.css
   =================================================== */

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

:root {
  --amber:        #F5A623;
  --navy:         #1B2A4A;
  --teal:         #2E7D7A;
  --teal-link:    #3BA39F;
  --text-dark:    #1A1A1A;
  --text-mid:     #444;
  --text-muted:   #888;
  --border:       #D0D0D0;
  --border-focus: #1B6EC2;   /* blue — matches mockup focused email */
  --error:        #D32F2F;
  --success:      #2E7D32;
  --radius-pill:  999px;
  --radius-md:    10px;
  --radius-lg:    14px;
  --shadow-card:  0 4px 24px rgba(0,0,0,0.10);
}

/* ── Page ── */
html, body {
  font-family: 'DM Sans', sans-serif;
  background: #ffffff;
  color: var(--text-dark);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 0;
}

/* ── Outer card shell ── */
.card-shell {
  width: calc(100vw - 80px);
  max-width: 1200px;
  margin: 0 auto;
  border: 1.5px solid #C8CDD8;
  border-radius: 18px;
  box-shadow:
    0 2px 6px rgba(0,0,0,0.06),
    0 10px 40px rgba(0,0,0,0.11),
    0 20px 60px rgba(0,0,0,0.07);
  overflow: hidden;
  background: #fff;
  min-height: 580px;
  display: flex;
  flex-direction: column;
}

/* ── Two-column wrapper ── */
.page-wrapper {
  display: flex;
  flex: 1;
  align-items: stretch;
  min-height: 580px;
}

/* ════════════════════════════════════
   LEFT PANEL  (unchanged from original)
   ════════════════════════════════════ */
.left-panel {
  width: 42%;
  min-width: 340px;
  background: linear-gradient(160deg, #FFF4D6 0%, #FDEBC0 45%, #F9DFA0 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  gap: 28px;
}

.logo-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 40px 22px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 320px;
}

.logo-inline {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-inline .logo-img {
  height: 44px;
  width: auto;
  max-width: none;
}

.logo-brand {
  font-family: 'DM Sans', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
  white-space: nowrap;
  letter-spacing: -0.02em;
}

.logo-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.logo-box {
  border: 3px solid var(--amber);
  border-radius: 6px;
  padding: 12px 28px;
  position: relative;
}

.logo-box::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 6px;
  border-left: 3px solid var(--amber);
  border-right: 3px solid var(--amber);
  border-bottom: 3px solid var(--amber);
  border-radius: 0 0 4px 4px;
}

.logo-text {
  font-family: 'DM Serif Display', serif;
  font-size: 32px;
  color: var(--amber);
  letter-spacing: 2px;
}

.logo-sub {
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--text-mid);
  font-weight: 500;
}

.logo-sub .dot { color: var(--amber); }

.tagline { text-align: center; }

.tagline-bold {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
}

.tagline-light {
  font-size: 14px;
  color: var(--text-mid);
  margin-top: 3px;
}

.stat-strip {
  display: flex;
  align-items: center;
  gap: 20px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.stat-num {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
}

.stat-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.stat-divider {
  width: 1px;
  height: 28px;
  background: #D0B880;
  opacity: 0.6;
}

.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 320px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid rgba(245,166,35,0.3);
  border-radius: 20px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dark);
  white-space: nowrap;
}

/* ════════════════════════════════════
   RIGHT PANEL  — pixel-matched to mockup
   ════════════════════════════════════ */
.right-panel {
  flex: 1;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  /* no centering here — we manually pad to match mockup spacing */
  padding: 0;
  position: relative;
}

/* ── ROW 1 · Language selector bar ── */
.rp-topbar {
  display: flex;
  justify-content: flex-end;          /* pushes pill to far right */
  padding: 22px 36px 0;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1.2px solid #CACACA;
  border-radius: var(--radius-pill);
  padding: 7px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #3a3a3a;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s;
}

.lang-btn:hover { border-color: #999; }

/* ── Form area — constrained & aligned like mockup ── */
.form-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  /* left-align content, match mockup left margin (~60px from divider) */
  padding: 28px 60px 48px 60px;
  max-width: 620px;               /* keeps content from stretching on wide screens */
}

/* ── ROW 2 · Go back ── */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-bottom: 28px;
  width: fit-content;
}

.back-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #F2F2F2;
  border-radius: 8px;
  margin-right: 8px;
  flex-shrink: 0;
}

.back-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #3a3a3a;
}

.back-btn:hover .back-arrow { background: #E8E8E8; }
.back-btn:hover .back-label { color: #111; }

/* ── ROW 3 · Welcome! heading ── */
.form-heading {
  font-family: 'DM Sans', sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: #1A1A1A;
  line-height: 1.2;
  margin-bottom: 6px;
}

/* ── ROW 4 · Subtitle ── */
.form-sub {
  font-size: 14px;
  color: #555;
  margin-bottom: 28px;
  font-weight: 400;
}

.sub-link {
  color: var(--teal);
  text-decoration: none;
  font-weight: 400;
}

.sub-link:hover { text-decoration: underline; }

/* ── ROW 5 · Email field ── */
.field-group {
  margin-bottom: 6px;
}

.field-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #555;
  margin-bottom: 6px;
}

.input-wrap {
  position: relative;
}

.field-input {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border: 1.8px solid var(--border-focus);   /* blue border — matches mockup active state */
  border-radius: var(--radius-md);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--text-dark);
  background: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(27,110,194,0.12);
}

.field-input:not(:focus) {
  border-color: #C8C8C8;
}

.field-input.is-error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(211,47,47,0.09);
}

.field-input.is-valid {
  border-color: #43A047;
}

.field-error {
  display: block;
  font-size: 12px;
  color: var(--error);
  font-weight: 500;
  min-height: 16px;
  margin-top: 4px;
}

/* ── ROW 6 · Setup or Reset Password ── */
.reset-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
  margin-bottom: 22px;
}

.reset-link {
  font-size: 13.5px;
  color: var(--teal);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.2s;
}

.reset-link:hover {
  color: var(--teal-link);
  text-decoration: underline;
}

/* ── ROW 7 · Login button ── */
.btn-login {
  width: 100%;
  height: 50px;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  letter-spacing: 0.2px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 2px 10px rgba(27,42,74,0.18);
  margin-bottom: 18px;
}

.btn-login:hover {
  background: #243660;
  box-shadow: 0 4px 16px rgba(27,42,74,0.26);
  transform: translateY(-1px);
}

.btn-login:active { transform: translateY(0); }
.btn-login:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

.spinner-svg { animation: spin 0.8s linear infinite; }

@keyframes spin { to { transform: rotate(360deg); } }

/* Success msg */
.success-msg {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #E8F5E9;
  border: 1px solid #A5D6A7;
  border-radius: var(--radius-md);
  padding: 11px 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--success);
  margin-bottom: 18px;
  animation: fadeIn 0.35s ease;
}

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

/* ── ROW 8 · Or continue with ── */
.or-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.or-line {
  flex: 1;
  height: 1px;
  background: #E2E2E2;
}

.or-text {
  font-size: 13px;
  color: #C08000;           /* warm amber-brown — matches mockup "Or continue with" colour */
  font-weight: 500;
  white-space: nowrap;
}

/* ── ROW 9 · Google button (pill outline, NOT full width) ── */
.google-row {
  margin-bottom: 28px;
}

.btn-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 46px;
  padding: 0 32px;
  background: #fff;
  border: 1.5px solid #CCCCCC;
  border-radius: var(--radius-pill);
  font-family: 'DM Sans', sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  /* width fits content — matches mockup (not full width) */
  width: auto;
  min-width: 160px;
}

.btn-google:hover {
  border-color: #aaa;
  background: #fafafa;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* ── ROW 10 · Don't have an account? Sign up ── */
.signup-box {
  background: #F5F5F5;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-size: 14px;
  color: #555;
  /* matches mockup: spans full width of form area */
}

.signup-link {
  color: var(--teal);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s;
}

.signup-link:hover {
  color: var(--teal-link);
  text-decoration: underline;
}

/* ── Eye toggle button (password show/hide) ── */
.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.eye-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 4px;
  border-radius: 4px;
  color: var(--text-muted);
  transition: color 0.2s;
}

.eye-btn:hover { color: var(--text-mid); }

/* Add right padding to input so text doesn't hide under the eye icon */
.input-wrap .field-input {
  padding-right: 44px;
}

/* ════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════ */
@media (max-width: 860px) {
  body { padding: 20px 0; align-items: flex-start; }

  .card-shell {
    width: calc(100vw - 24px);
    border-radius: 14px;
    min-height: unset;
  }

  .page-wrapper {
    flex-direction: column;
    min-height: unset;
  }

  .left-panel {
    width: 100%;
    min-width: unset;
    padding: 40px 24px;
  }

  .right-panel { width: 100%; }

  .rp-topbar { padding: 18px 24px 0; }

  .form-area { padding: 24px 24px 40px; max-width: 100%; }
}

@media (max-width: 480px) {
  .form-heading { font-size: 24px; }
  .pill-grid { gap: 8px; }
}
