@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

.jaay-auth {
  --auth-ink: #12213f;
  --auth-muted: #60708a;
  --auth-blue: #174ea6;
  --auth-blue-dark: #0a2457;
  --auth-accent: #f4b41a;
  --auth-line: #dce5f2;
  min-height: 100vh;
  min-height: 100svh;
  padding: 0 clamp(20px, 4vw, 64px);
  color: var(--auth-ink);
  background:
    radial-gradient(circle at 14% 88%, rgba(51, 112, 209, .18), transparent 32%),
    linear-gradient(120deg, #091e49 0%, #0e367a 52%, #f5f8fd 52%, #fff 100%);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.jaay-auth * { box-sizing: border-box; }

.jaay-auth-header,
.jaay-auth-main,
.jaay-auth-footer {
  width: min(1180px, 100%);
  margin-inline: auto;
}

.jaay-auth-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
}

.jaay-auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--auth-ink);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.04em;
  text-decoration: none;
}

.jaay-auth-brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: contain;
}

.jaay-auth-brand strong { color: var(--auth-blue); }

.jaay-auth-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 13px;
  border-radius: 10px;
  color: var(--auth-muted);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: color .2s ease, background .2s ease;
}

.jaay-auth-back:hover { color: var(--auth-blue); background: #edf3fc; }
.jaay-auth-back svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.jaay-auth-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 470px);
  align-items: center;
  gap: clamp(70px, 10vw, 150px);
  min-height: calc(100svh - 174px);
  padding: 42px 0 56px;
}

.jaay-auth-intro { max-width: 570px; color: #fff; }
.jaay-auth-eyebrow { display: inline-flex; align-items: center; gap: 10px; color: #bdd0ef; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.jaay-auth-eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--auth-accent); box-shadow: 0 0 0 5px rgba(244, 180, 26, .15); }
.jaay-auth-intro h1 { margin: 25px 0 21px; color: #fff; font-size: clamp(43px, 5vw, 68px); line-height: 1.04; letter-spacing: -.065em; }
.jaay-auth-intro h1 em { color: #a9c7fa; font-style: normal; }
.jaay-auth-intro > p { max-width: 530px; margin: 0; color: #cfddf2; font-size: 16px; line-height: 1.75; }
.jaay-auth-intro ul { display: grid; gap: 12px; margin: 30px 0 0; padding: 0; list-style: none; }
.jaay-auth-intro li { display: flex; align-items: center; gap: 10px; color: #dbe6f6; font-size: 13px; }
.jaay-auth-intro li span { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; color: #8ee4bd; background: rgba(142, 228, 189, .1); font-size: 11px; font-weight: 800; }

.jaay-auth-card {
  position: relative;
  padding: clamp(30px, 4vw, 46px);
  border: 1px solid rgba(220, 229, 242, .9);
  border-radius: 22px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 28px 70px rgba(8, 33, 80, .16);
}

.jaay-auth-card-icon { display: grid; width: 46px; height: 46px; margin-bottom: 22px; place-items: center; border-radius: 13px; color: var(--auth-blue); background: #edf3ff; }
.jaay-auth-card-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.jaay-auth-kicker { margin: 0 0 8px; color: var(--auth-blue); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.jaay-auth-card h2 { margin: 0; color: var(--auth-ink); font-size: 34px; line-height: 1.15; letter-spacing: -.05em; }
.jaay-auth-card-copy { margin: 10px 0 28px; color: var(--auth-muted); font-size: 13px; line-height: 1.65; }

.jaay-auth-alert { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 20px; padding: 12px 14px; border: 1px solid #f2c8c4; border-radius: 10px; color: #922f28; background: #fff3f2; font-size: 12px; font-weight: 600; line-height: 1.5; }
.jaay-auth-alert svg { flex: 0 0 auto; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.jaay-auth-form { display: grid; gap: 21px; }
.jaay-auth-field { display: grid; gap: 8px; }
.jaay-auth-field label { margin: 0; color: var(--auth-ink); font-size: 12px; font-weight: 700; }
.jaay-auth-field small { color: #7a899f; font-size: 10px; line-height: 1.5; }
.jaay-auth-control { position: relative; display: flex; align-items: center; }
.jaay-auth-control > svg { position: absolute; left: 15px; z-index: 1; width: 19px; height: 19px; fill: none; stroke: #7d8da5; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.jaay-auth-control input { width: 100%; height: 52px; margin: 0; padding: 0 15px 0 45px; border: 1px solid var(--auth-line); border-radius: 11px; outline: none; color: var(--auth-ink); background: #fff; font: inherit; font-size: 14px; transition: border-color .2s ease, box-shadow .2s ease; }
.jaay-auth-control input::placeholder { color: #9aa8ba; }
.jaay-auth-control input:hover { border-color: #bdcbe0; }
.jaay-auth-control input:focus { border-color: var(--auth-blue); box-shadow: 0 0 0 4px rgba(23, 78, 166, .11); }
.jaay-auth-control input[aria-invalid="true"] { border-color: #c95850; }
.jaay-auth-password-control input { padding-right: 85px; }
.jaay-auth-password-toggle { position: absolute; right: 8px; min-width: 68px; min-height: 38px; padding: 0 9px; border: 0; border-radius: 8px; color: var(--auth-blue); background: transparent; font: inherit; font-size: 11px; font-weight: 800; cursor: pointer; }
.jaay-auth-password-toggle:hover { background: #edf3ff; }

.jaay-auth-submit { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 52px; margin-top: 4px; padding: 0 20px; border: 0; border-radius: 11px; color: #fff; background: var(--auth-blue-dark); box-shadow: 0 12px 25px rgba(10, 36, 87, .2); font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.jaay-auth-submit:hover { background: var(--auth-blue); box-shadow: 0 15px 28px rgba(23, 78, 166, .25); transform: translateY(-1px); }
.jaay-auth-submit:disabled { cursor: wait; opacity: .72; transform: none; }
.jaay-auth-submit svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.jaay-auth a:focus-visible,
.jaay-auth button:focus-visible { outline: 3px solid var(--auth-accent); outline-offset: 3px; }
.jaay-auth-alert:focus { outline: 3px solid rgba(201, 88, 80, .22); outline-offset: 2px; }
.jaay-auth-support { margin: 25px 0 0; color: var(--auth-muted); font-size: 11px; text-align: center; }
.jaay-auth-support a { color: var(--auth-blue); font-weight: 800; text-underline-offset: 3px; }

.jaay-auth-footer { display: flex; justify-content: space-between; gap: 20px; min-height: 82px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); color: #99afd0; font-size: 10px; }

@media (max-width: 900px) {
  .jaay-auth { background: linear-gradient(155deg, #091e49 0, #123d85 38%, #f5f8fd 38%, #fff 100%); }
  .jaay-auth-header { min-height: 80px; }
  .jaay-auth-brand { color: #fff; }
  .jaay-auth-brand strong { color: #a9c5f5; }
  .jaay-auth-back { color: #dce7f8; }
  .jaay-auth-back:hover { color: #fff; background: rgba(255, 255, 255, .1); }
  .jaay-auth-main { grid-template-columns: 1fr; gap: 32px; min-height: auto; padding: 42px 0 64px; }
  .jaay-auth-intro { max-width: 650px; }
  .jaay-auth-intro h1 { max-width: 600px; font-size: clamp(38px, 8vw, 56px); }
  .jaay-auth-intro ul { display: none; }
  .jaay-auth-card { width: min(100%, 520px); margin-inline: auto; }
  .jaay-auth-footer { color: var(--auth-muted); border-top-color: var(--auth-line); }
}

@media (max-width: 560px) {
  .jaay-auth { padding-inline: 16px; background: linear-gradient(160deg, #091e49 0, #123d85 29%, #f5f8fd 29%, #fff 100%); }
  .jaay-auth-header { min-height: 72px; }
  .jaay-auth-brand { font-size: 14px; }
  .jaay-auth-brand img { width: 34px; height: 34px; }
  .jaay-auth-back { padding: 0 6px; font-size: 11px; }
  .jaay-auth-main { gap: 27px; padding: 34px 0 44px; }
  .jaay-auth-intro h1 { margin: 18px 0 13px; font-size: 36px; }
  .jaay-auth-intro > p { font-size: 13px; }
  .jaay-auth-card { padding: 28px 22px; border-radius: 18px; }
  .jaay-auth-card-icon { width: 42px; height: 42px; margin-bottom: 18px; }
  .jaay-auth-card h2 { font-size: 30px; }
  .jaay-auth-card-copy { margin-bottom: 24px; }
  .jaay-auth-footer { align-items: flex-start; flex-direction: column; gap: 6px; min-height: 88px; }
}

@media (prefers-reduced-motion: reduce) {
  .jaay-auth *, .jaay-auth *::before, .jaay-auth *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
