@import url("https://fonts.googleapis.com/css2?family=Archivo+Black&family=Quicksand:wght@400;500;600;700&display=swap");

:root {
  --deep: #0a376e;
  --blue: #0f5387;
  --mid: #538aad;
  --coral: #fca882;
  --paper: #f7f9fb;
  --ink: #102a43;
  --line: rgba(83, 138, 173, 0.2);
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  font-family: Quicksand, sans-serif;
  background: var(--paper);
  color: var(--ink);
}

button, input { font: inherit; }

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(440px, 0.92fr);
}

.auth-intro {
  min-height: 100vh;
  padding: 42px clamp(34px, 6vw, 88px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  background:
    radial-gradient(circle at 88% 18%, rgba(83, 138, 173, 0.34), transparent 31%),
    linear-gradient(145deg, #0a376e 0%, #082e5b 100%);
  position: relative;
  overflow: hidden;
}

.auth-intro::after {
  content: "";
  position: absolute;
  width: min(36vw, 520px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 50%;
  right: -15%;
  bottom: -18%;
  box-shadow: 0 0 0 80px rgba(255, 255, 255, 0.025), 0 0 0 160px rgba(255, 255, 255, 0.018);
}

.auth-brand {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 13px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.auth-brand img { width: 48px; height: 48px; object-fit: contain; }
.auth-brand small { display: block; margin-top: 3px; font-size: 10px; opacity: 0.65; letter-spacing: 0.18em; }
.intro-copy { max-width: 760px; position: relative; z-index: 1; }
.eyebrow { margin: 0 0 18px; color: var(--coral); font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; }

h1, h2 {
  font-family: "Archivo Black", sans-serif;
  margin: 0;
  line-height: 0.98;
}

h1 { max-width: 830px; font-size: clamp(54px, 7vw, 104px); letter-spacing: -0.04em; }
.intro-text { max-width: 620px; margin: 30px 0 0; color: #dce9f2; font-size: clamp(17px, 1.45vw, 21px); line-height: 1.65; }
.intro-footer { margin: 0; color: #b8cfdf; font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; position: relative; z-index: 1; }

.auth-panel {
  padding: 48px clamp(28px, 5vw, 72px) 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #fff 0%, #f7f9fb 78%);
}

.auth-card { width: min(100%, 520px); position: relative; }
.card-mark { width: 58px; height: 8px; margin-bottom: 34px; background: var(--coral); border-radius: 999px; }
h2 { color: var(--deep); font-size: clamp(34px, 4vw, 55px); letter-spacing: -0.035em; }
form { margin-top: 40px; }
label { display: block; margin: 0 0 10px; color: var(--deep); font-size: 13px; font-weight: 700; }

input {
  width: 100%;
  height: 58px;
  padding: 0 17px;
  border: 1px solid var(--line);
  border-radius: 13px;
  outline: none;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  box-shadow: 0 8px 30px rgba(10, 55, 110, 0.05);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input:focus { border-color: var(--mid); box-shadow: 0 0 0 4px rgba(83, 138, 173, 0.13); }
.code-input { font-size: 26px; font-weight: 700; letter-spacing: 0.24em; text-align: center; }

.primary-button {
  width: 100%;
  min-height: 56px;
  margin-top: 15px;
  padding: 13px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 999px;
  background: var(--deep);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}

.primary-button:hover { background: var(--blue); transform: translateY(-1px); }
.primary-button:disabled { cursor: wait; opacity: 0.65; transform: none; }
.step-copy { margin: 0 0 24px; color: #6b7f90; line-height: 1.6; font-size: 14px; }
.step-copy strong { color: var(--deep); }
.secondary-actions { display: flex; justify-content: space-between; gap: 20px; margin-top: 18px; }
.text-button { padding: 0; border: 0; background: transparent; color: var(--blue); font-size: 12px; font-weight: 700; cursor: pointer; }
.text-button:hover { text-decoration: underline; }
.form-status { min-height: 22px; margin: 18px 0 0; color: #456175; font-size: 13px; line-height: 1.5; }
.form-status.is-error { color: #a83f35; }
.form-status.is-success { color: #24734d; }
.security-note { margin: 26px 0 0; padding-top: 24px; border-top: 1px solid var(--line); color: #7b8d9b; font-size: 11px; }
.security-note span { color: #4cae7b; margin-right: 6px; }
.panel-footer { width: min(100%, 520px); margin: 38px 0 0; color: #7b8d9b; font-size: 12px; }
.panel-footer a { color: var(--deep); font-weight: 700; }
.is-hidden { display: none; }

@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-intro { min-height: 44vh; padding: 28px 7vw 42px; }
  .intro-copy { margin: 72px 0 66px; }
  h1 { font-size: clamp(46px, 12vw, 78px); }
  .intro-footer { display: none; }
  .auth-panel { min-height: 56vh; padding: 52px 7vw 34px; }
}

@media (max-width: 520px) {
  .auth-intro { min-height: 390px; }
  .intro-copy { margin: 58px 0 32px; }
  .intro-text { font-size: 15px; }
  .auth-panel { align-items: stretch; }
  .secondary-actions { align-items: flex-start; flex-direction: column; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
