/* Sign-in pages (login, forgot / reset password): a centred card, brand half + form half, in Future-Link colours.
   navy #052673, deep navy #031a52, mint #00FA92, dark mint text #047A4A */
:root {
  --navy: #052673;
  --navy-deep: #031a52;
  --mint: #00fa92;
  --mint-text: #047a4a;
  --ink: #0f1733;
  --muted: #646b84;
  --line: #dde1ec;
  --field: #f6f7fb;
}

* { box-sizing: border-box; }

.auth-body {
  margin: 0;
  min-height: 100vh;
  font-family: "Plus Jakarta Sans", "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  /* Soft brand-coloured haze behind the card */
  background:
    radial-gradient(circle at 12% 18%, rgba(0, 250, 146, .18), transparent 38%),
    radial-gradient(circle at 88% 85%, rgba(5, 38, 115, .16), transparent 42%),
    #eef1f8;
}

/* The card in the middle: navy brand half on the left, form half on the right */
.auth-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  max-width: 1120px;
  min-height: 640px;
  border-radius: 28px;
  overflow: hidden;
  background: var(--navy-deep);
  box-shadow: 0 40px 80px -30px rgba(3, 26, 82, .45), 0 0 0 1px rgba(5, 38, 115, .06);
}

/* ---------- Left: brand panel ---------- */
.auth-brand {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 40px 84px 32px 48px;
  color: #fff;
  background: linear-gradient(155deg, #0a3192 0%, var(--navy) 45%, var(--navy-deep) 100%);
}
.auth-glow { position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; }
.auth-glow.g1 { width: 380px; height: 380px; right: -120px; top: -120px; background: rgba(0, 250, 146, .32); }
.auth-glow.g2 { width: 320px; height: 320px; left: -150px; bottom: -130px; background: rgba(64, 120, 255, .35); }
.auth-rings {
  position: absolute; right: -200px; bottom: -200px; width: 520px; height: 520px; border-radius: 50%; pointer-events: none;
  background: repeating-radial-gradient(circle, rgba(255, 255, 255, .07) 0 1px, transparent 1px 44px);
}
.auth-logo { position: relative; width: 170px; height: auto; }

.auth-pitch { position: relative; margin: auto 0; padding: 36px 0; max-width: 440px; }
.auth-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 99px;
  background: rgba(0, 250, 146, .14); border: 1px solid rgba(0, 250, 146, .35); color: var(--mint);
  font-size: 12.5px; font-weight: 700; letter-spacing: .04em;
}
.auth-pitch h2 { margin: 20px 0 26px; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }
.auth-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.auth-points li {
  display: flex; gap: 14px; align-items: flex-start; padding: 13px 15px; border-radius: 14px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); backdrop-filter: blur(6px);
}
.auth-points li > i {
  flex: 0 0 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: var(--mint); color: var(--navy); font-size: 15px;
}
.auth-points b { display: block; font-size: 14.5px; font-weight: 700; }
.auth-points span { display: block; margin-top: 2px; font-size: 12.5px; color: rgba(255, 255, 255, .72); }
.auth-foot { position: relative; font-size: 12px; color: rgba(255, 255, 255, .6); }

/* ---------- Right: form, sliding over the navy half with rounded left corners ---------- */
.auth-panel {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: -36px;
  padding: 44px 52px;
  background: #fff;
  border-radius: 36px 0 0 36px;
  box-shadow: -16px 0 40px -18px rgba(3, 26, 82, .55);
}
.auth-card { width: 100%; max-width: 420px; animation: auth-in .45s ease-out both; }
@keyframes auth-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.auth-logo-mobile { display: none; width: 170px; height: auto; margin-bottom: 26px; }

.auth-eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--mint-text); }
.auth-title { margin: 8px 0 8px; font-size: 32px; font-weight: 800; letter-spacing: -.02em; color: var(--navy); }
.auth-sub { margin: 0 0 28px; font-size: 15px; line-height: 1.55; color: var(--muted); }

.auth-label { display: block; margin: 0 0 7px; font-size: 13.5px; font-weight: 700; color: var(--ink); }
.auth-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.auth-label-row a { font-size: 13px; font-weight: 700; color: var(--mint-text); text-decoration: none; }
.auth-label-row a:hover { text-decoration: underline; }

.auth-field { position: relative; margin-bottom: 18px; }
.auth-field > i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #9aa1b8; font-size: 15px; pointer-events: none; transition: color .15s; }
.auth-field:focus-within > i { color: var(--navy); }

.login-input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  margin-bottom: 18px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--field);
  font: inherit;
  font-size: 15.5px;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.auth-field .login-input { margin-bottom: 0; padding-left: 46px; }
.login-input::placeholder { color: #a3a9bd; }
.login-input:hover { border-color: #c5cadb; }
.login-input:focus { outline: none; background: #fff; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(0, 250, 146, .28); }
.login-input.is-invalid { border-color: #e5484d; background: #fff7f7; }

.login-pw { position: relative; }
.login-pw .login-input { padding-right: 50px; }
.login-eye {
  position: absolute; right: 8px; top: 8px; width: 36px; height: 36px; border: none; border-radius: 9px;
  background: transparent; color: #7c839b; cursor: pointer;
}
.login-pw:not(.auth-field) .login-eye { top: 8px; }
.login-eye:hover { background: #e9ecf4; color: var(--navy); }

.login-button {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; height: 54px; margin-top: 6px;
  border: none; border-radius: 12px;
  background: var(--navy); color: #fff;
  font: inherit; font-size: 16px; font-weight: 700; text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 24px -10px rgba(5, 38, 115, .6);
  transition: background .2s, transform .15s, box-shadow .2s, color .2s;
}
.login-button i { transition: transform .2s; }
.login-button:hover:not(:disabled) { background: var(--mint); color: var(--navy); box-shadow: 0 12px 26px -10px rgba(0, 200, 120, .7); }
.login-button:hover:not(:disabled) .fa-arrow-right { transform: translateX(4px); }
.login-button:active:not(:disabled) { transform: translateY(1px); }
.login-button:focus-visible { outline: 3px solid rgba(0, 250, 146, .6); outline-offset: 3px; }
.login-button:disabled { opacity: .65; cursor: not-allowed; }

/* Who signs in here */
.auth-who { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.auth-who div { display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: var(--muted); }
.auth-who i { flex: 0 0 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: #e8fff4; color: var(--mint-text); font-size: 13px; }
.auth-who b { color: var(--ink); font-weight: 700; }

/* Messages, links and password helpers */
.login-alert {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px; margin-bottom: 20px; border-radius: 12px;
  font-size: 14px; line-height: 1.45; border: 1px solid transparent;
}
.login-alert[hidden] { display: none; }
.login-alert > i { margin-top: 2px; }
.login-alert.info { background: #e8fff4; border-color: #b8f5d8; color: #03492c; }
.login-alert.success { background: #e9f9ef; border-color: #bfe8cf; color: #1e6b3a; }
.login-alert.warning { background: #fff6e5; border-color: #f6dca6; color: #8a5a00; }
.login-alert.danger { background: #fff0f0; border-color: #f6c9cb; color: #a3262b; }
.login-text { color: var(--muted); margin: 0 0 20px; line-height: 1.55; }
.login-text b { color: var(--ink); }
.login-links { text-align: center; margin-top: 22px; }
.login-links a { display: inline-flex; align-items: center; gap: 8px; color: var(--mint-text); font-weight: 700; font-size: 14px; text-decoration: none; }
.login-links a:hover { text-decoration: underline; }
.login-rules { list-style: none; padding: 0; margin: 2px 0 18px; font-size: 13.5px; color: var(--muted); display: grid; gap: 6px; }
.login-rules li i { color: #c3c8d6; margin-right: 8px; }
.login-rules li.ok { color: var(--ink); }
.login-rules li.ok i { color: #12b76a; }

/* ---------- Tablets and phones: brand panel becomes a short header ---------- */
@media (max-width: 980px) {
  .auth-body { display: block; padding: 0; }
  .auth-shell { grid-template-columns: 1fr; max-width: none; min-height: 100vh; border-radius: 0; overflow: visible; background: transparent; box-shadow: none; }
  .auth-panel { margin: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .auth-brand { display: none; }
  .auth-body { background: linear-gradient(180deg, var(--navy) 0 190px, #f3f5fa 190px); }
  .auth-panel { align-items: flex-start; padding: 56px 18px 32px; }
  .auth-card { background: #fff; border-radius: 20px; padding: 30px 24px 28px; box-shadow: 0 24px 50px -24px rgba(3, 26, 82, .45); }
  .auth-logo-mobile { display: block; }
  .auth-title { font-size: 27px; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-card { animation: none; }
  .login-button, .login-button i { transition: none; }
}
