/* ============================================================
   Dordle — login screen
   Single stylesheet, no framework, no build step.
   All classes prefixed `dd-`; nothing global except @font-face
   and the body reset.
   ============================================================ */

/* ---- Fonts: Montserrat, self-hosted (see README) ---- */
@font-face { font-family: 'Montserrat'; src: url('../fonts/Montserrat-Regular.ttf');  font-weight: 400; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('../fonts/Montserrat-Medium.ttf');   font-weight: 500; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('../fonts/Montserrat-SemiBold.ttf'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('../fonts/Montserrat-Bold.ttf');     font-weight: 700; font-display: swap; }

/* ---- Design tokens ---- */
:root {
  --dd-navy:     #093f57;  /* brand panel */
  --dd-navy-2:   #041f2c;  /* panel vignette */
  --dd-blue:     #0e678e;  /* wordmark blue: buttons, links, focus */
  --dd-blue-2:   #0b5474;  /* button hover */
  --dd-ink:      #14232b;  /* headings, input text */
  --dd-ink-2:    #445560;  /* field labels */
  --dd-muted:    #5f6f78;  /* secondary text */
  --dd-muted-2:  #7d8b93;  /* eyebrows */
  --dd-faint:    #93a1a9;  /* fine print */
  --dd-paper:    #f5f7f8;  /* form-pane background */
  --dd-surface:  #ffffff;  /* inputs */
  --dd-line:     #e2e8eb;  /* dividers */
  --dd-line-2:   #dde3e6;  /* input borders */
  --dd-on-navy:  #bcdcea;  /* body text on navy */
  --dd-on-navy-2:#7fb4c9;  /* captions on navy */
  --dd-danger:   #b3261e;
  --dd-radius:   12px;
}

body {
  margin: 0;
  background: var(--dd-paper);
  font-family: Montserrat, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: var(--dd-ink);
  -webkit-font-smoothing: antialiased;
}

/* ---- Shell ---- */
.dd-login { display: flex; min-height: 100vh; }

/* ============================================================
   Brand panel (left)
   ============================================================ */
.dd-brand {
  position: relative;
  width: 620px;
  flex-shrink: 0;
  box-sizing: border-box;
  padding: 56px 60px;
  background: var(--dd-navy);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  overflow: hidden;
}
/* dark vignette bottom-left, faint gauge-green glow top-right */
.dd-brand::before {
  content: '';
  position: absolute;
  bottom: -200px; left: -160px;
  width: 680px; height: 680px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(4, 31, 44, 0.85) 0%, rgba(4, 31, 44, 0) 68%);
}
.dd-brand::after {
  content: '';
  position: absolute;
  top: -140px; right: -120px;
  width: 460px; height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(143, 220, 16, 0.16) 0%, rgba(143, 220, 16, 0) 66%);
}
.dd-brand > * { position: relative; z-index: 1; }

.dd-brand__logo { display: block; align-self: flex-start; }

.dd-brand__hero { display: flex; flex-direction: column; gap: 26px; }
/* the gauge rule — red → yellow → green, echoing the score gauge in the logo */
.dd-rule {
  width: 56px; height: 5px; border-radius: 3px;
  background: linear-gradient(90deg, #e63312 0%, #f5e211 50%, #8fdc10 100%);
}
.dd-brand__hero h2 {
  margin: 0; max-width: 460px; color: #fff;
  font-size: 43px; font-weight: 700; line-height: 1.12; letter-spacing: -0.03em;
  text-wrap: pretty;
}
.dd-brand__hero p {
  margin: 0; max-width: 420px; color: var(--dd-on-navy);
  font-size: 16px; font-weight: 400; line-height: 1.55;
  text-wrap: pretty;
}

.dd-stats { display: flex; gap: 40px; margin: 0; padding-top: 8px; }
.dd-stats div { display: flex; flex-direction: column; gap: 5px; }
.dd-stats dt { color: #fff; font-size: 21px; font-weight: 700; letter-spacing: -0.02em; }
.dd-stats dd { margin: 0; color: var(--dd-on-navy-2); font-size: 9px; font-weight: 500; letter-spacing: 0.2em; }

.dd-brand__foot {
  margin: 0; display: flex; align-items: center; gap: 14px;
  color: #6fa6bc; font-size: 11px; font-weight: 500;
}
.dd-divider { width: 1px; height: 10px; background: rgba(255, 255, 255, 0.2); }

/* ============================================================
   Form pane (right)
   ============================================================ */
.dd-pane {
  flex: 1; min-width: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--dd-paper);
  padding: 40px 24px;
  box-sizing: border-box;
}
.dd-form { width: 400px; display: flex; flex-direction: column; gap: 26px; }

.dd-pane-logo { display: none; }             /* desktop: brand panel carries the logo */

.dd-head { display: flex; flex-direction: column; gap: 8px; }
.dd-eyebrow {
  margin: 0; font-size: 9.5px; font-weight: 600;
  letter-spacing: 0.3em; color: var(--dd-muted-2);
}
.dd-head h1 {
  margin: 0; font-size: 30px; font-weight: 700;
  letter-spacing: -0.025em; line-height: 1.1;
}
.dd-sub { margin: 0; font-size: 13.5px; font-weight: 500; color: var(--dd-muted); line-height: 1.5; }

/* ---- Failed-authentication alert ---- */
.dd-alert {
  margin: 0;
  border: 1px solid #f0c4bf;
  border-left: 4px solid var(--dd-danger);
  border-radius: var(--dd-radius);
  background: #fdf2f0;
  padding: 12px 15px;
  font-size: 12.5px; font-weight: 600; color: #8f1d16;
}

/* ---- Fields ---- */
.dd-fields { display: flex; flex-direction: column; gap: 18px; }
.dd-field { display: flex; flex-direction: column; gap: 7px; }
.dd-field__row { display: flex; align-items: baseline; justify-content: space-between; }
.dd-field label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em; color: var(--dd-ink-2);
}

.dd-field input {
  box-sizing: border-box;
  width: 100%; height: 48px; padding: 0 16px;
  font-family: inherit; font-size: 14px; font-weight: 500; color: var(--dd-ink);
  background: var(--dd-surface);
  border: 1px solid var(--dd-line-2);
  border-radius: var(--dd-radius);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.dd-field input::placeholder { color: #9fadb4; }
.dd-field input:focus {
  border-color: var(--dd-blue);
  box-shadow: 0 0 0 3px rgba(14, 103, 142, 0.14);
}
.dd-field input[aria-invalid="true"] {
  border-color: #e3b3ad;
  box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.10);
}

/* ---- Checkbox ---- */
.dd-check {
  display: flex; align-items: center; gap: 9px;
  font-size: 12.5px; font-weight: 500; color: var(--dd-ink-2); cursor: pointer;
}
.dd-check input { width: 16px; height: 16px; margin: 0; accent-color: var(--dd-blue); }

/* ---- Button ---- */
.dd-submit {
  height: 50px; font-family: inherit;
  font-size: 14.5px; font-weight: 600; letter-spacing: 0.01em;
  color: #fff; background: var(--dd-blue);
  border: none; border-radius: var(--dd-radius);
  cursor: pointer; transition: background 0.15s;
}
.dd-submit:hover  { background: var(--dd-blue-2); }
.dd-submit:active { background: var(--dd-navy); }
.dd-submit:focus-visible { outline: 2px solid var(--dd-blue); outline-offset: 2px; }

/* ---- Links ---- */
.dd-link { font-size: 11.5px; font-weight: 600; color: var(--dd-blue); text-decoration: none; }
.dd-link:hover { color: var(--dd-navy); text-decoration: underline; }

/* ---- Footer ---- */
.dd-foot {
  border-top: 1px solid var(--dd-line);
  padding-top: 18px;
  display: flex; flex-direction: column; gap: 10px;
}
.dd-foot p { margin: 0; font-size: 12.5px; font-weight: 500; color: var(--dd-muted); }
.dd-foot .dd-link { font-size: inherit; }
.dd-fineprint {
  font-size: 10.5px !important; font-weight: 500 !important;
  color: var(--dd-faint) !important; line-height: 1.5;
}

/* ============================================================
   Responsive — collapse to a single column
   ============================================================ */
@media (max-width: 1180px) {
  .dd-brand { width: 45%; padding: 48px 40px; }
  .dd-brand__hero h2 { font-size: 34px; }
  .dd-stats { gap: 28px; }
}

@media (max-width: 900px) {
  .dd-brand { display: none; }
  .dd-pane-logo { display: block; }   /* colour wordmark, light background */
  .dd-form { width: 100%; max-width: 400px; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
