/* Admin sign-in — same palette as the admin dashboard (dark teal rail, green accent, light panels). */
:root {
  --adl-ink: #1d2c25;
  --adl-muted: #6f7d76;
  --adl-line: #dce5e0;
  --adl-bg: #f4f7f5;
  --adl-accent: #087d5e;
  --adl-accent-2: #13aa80;
  --adl-glow: #24d1ac;
  --adl-danger: #b3342e;
  --adl-font: "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body.adl { background: var(--adl-bg); color: var(--adl-ink); font-family: var(--adl-font); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
.adl .fa-solid { font-family: var(--_fa-family) !important; font-weight: 900 !important; font-style: normal !important; }

.adl-shell { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100vh; }

/* ---------- story panel ---------- */
.adl-story {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  padding: 44px 56px;
  background: linear-gradient(160deg, #0d1c21 0%, #0a1418 55%, #080e13 100%);
  color: #e8f3f0;
}
.adl-story::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 1px, transparent 1px 80px);
}
.adl-glow { position: absolute; width: 520px; height: 520px; left: -160px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(36,209,172,.22), transparent 65%); pointer-events: none; }

.adl-brand, .adl-mobile-brand { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; }
.adl-mark {
  display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(145deg, var(--adl-glow), #087d68); color: #fff;
  font-size: 20px; font-weight: 900; font-style: italic; box-shadow: 0 8px 22px rgba(22,192,155,.25);
}
img.adl-mark-img { object-fit: contain; padding: 4px; background: #fff; }
.adl-brand-text { display: flex; flex-direction: column; }
.adl-brand-text strong { font-size: 18px; letter-spacing: .01em; }
.adl-brand-text span { color: #7d9aa0; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }

.adl-story-copy { position: relative; z-index: 1; max-width: 520px; }
.adl-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid rgba(36,209,172,.3); border-radius: 999px; background: rgba(36,209,172,.08); color: #7fe6cf; font-size: 11px; font-weight: 800; letter-spacing: .1em; }
.adl-story h1 { margin: 22px 0 14px; font-size: clamp(30px, 3.2vw, 44px); line-height: 1.12; letter-spacing: -.02em; }
.adl-story-copy > p { margin: 0 0 30px; color: #9fb6b9; font-size: 16px; }
.adl-features { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.adl-features li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid rgba(255,255,255,.07); border-radius: 13px; background: rgba(255,255,255,.035); }
.adl-feature-ico { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; border-radius: 11px; background: rgba(36,209,172,.12); color: var(--adl-glow); font-size: 16px; }
.adl-features strong, .adl-features .adl-small { display: block; font-size: 14px; }
.adl-features .adl-small { color: #89a3a7; font-size: 12.5px; }

.adl-status { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: #7d9aa0; font-size: 12.5px; }
.adl-live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--adl-glow); box-shadow: 0 0 0 4px rgba(36,209,172,.15); }
.adl-status-sep { opacity: .5; }

/* ---------- form panel ---------- */
.adl-panel { display: grid; place-items: center; padding: 40px 24px; }
.adl-card { width: min(440px, 100%); }
.adl-mobile-brand { display: none; margin-bottom: 26px; }
.adl-mobile-brand strong { font-size: 18px; }

.adl-card-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 26px; }
.adl-lock { display: grid; place-items: center; flex: 0 0 46px; width: 46px; height: 46px; border-radius: 13px; background: #e1f3ec; color: var(--adl-accent); font-size: 19px; }
.adl-card-head h2 { margin: 0 0 4px; font-size: 26px; letter-spacing: -.01em; }
.adl-card-head p { margin: 0; color: var(--adl-muted); }

.adl-alert { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; padding: 12px 14px; border: 1px solid #f2c4c1; border-radius: 11px; background: #fdeeee; color: var(--adl-danger); font-size: 14px; font-weight: 600; }

.adl-form { display: flex; flex-direction: column; }
.adl-label { margin-bottom: 7px; color: #44534c; font-size: 13px; font-weight: 700; }
.adl-label-row { display: flex; align-items: baseline; justify-content: space-between; margin-top: 18px; }
.adl-helper { color: #93a09a; font-size: 12px; }
.adl-input-wrap { position: relative; }
.adl-input-ico { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #93a39b; font-size: 14px; pointer-events: none; }
.adl-input {
  width: 100%; height: 50px; padding: 0 46px 0 42px;
  border: 1px solid var(--adl-line); border-radius: 12px; background: #fff; color: var(--adl-ink);
  font: inherit; font-size: 15px; transition: border-color .15s, box-shadow .15s;
}
.adl-input::placeholder { color: #a9b5af; }
.adl-input:focus { outline: 0; border-color: var(--adl-accent-2); box-shadow: 0 0 0 4px rgba(19,170,128,.14); }
.adl-input-wrap:focus-within .adl-input-ico { color: var(--adl-accent); }
.adl-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; border-radius: 9px; background: transparent; color: #81918a; cursor: pointer; }
.adl-eye:hover, .adl-eye:focus-visible { background: #eef4f1; color: var(--adl-accent); outline: 0; }

.adl-submit {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; margin-top: 24px; border: 0; border-radius: 12px;
  background: linear-gradient(135deg, var(--adl-accent-2), var(--adl-accent)); color: #fff;
  font: inherit; font-size: 15px; font-weight: 800; cursor: pointer;
  box-shadow: 0 12px 26px rgba(8,125,94,.25); transition: transform .15s, box-shadow .15s;
}
.adl-submit:hover { transform: translateY(-1px); box-shadow: 0 16px 30px rgba(8,125,94,.3); }
.adl-submit:focus-visible { outline: 3px solid rgba(19,170,128,.35); outline-offset: 2px; }
.adl-submit-ico { transition: transform .15s; }
.adl-submit:hover .adl-submit-ico { transform: translateX(3px); }
.adl-spinner { display: none; }
.adl-submit.is-loading { pointer-events: none; opacity: .9; }
.adl-submit.is-loading .adl-submit-ico { display: none; }
.adl-submit.is-loading .adl-spinner { display: inline-block; animation: adl-spin .8s linear infinite; }
@keyframes adl-spin { to { transform: rotate(360deg); } }

.adl-demo {
  display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 16px; padding: 12px 14px;
  border: 1px dashed #b9d8ca; border-radius: 12px; background: #f3faf6; color: var(--adl-ink);
  font: inherit; text-align: left; cursor: pointer;
}
.adl-demo:hover { border-color: var(--adl-accent-2); background: #ebf7f1; }
.adl-demo > span:nth-child(2) { flex: 1; }
.adl-demo strong, .adl-demo .adl-small { display: block; font-size: 14px; }
.adl-demo .adl-small { color: var(--adl-muted); font-size: 12px; }
.adl-demo-ico { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 10px; background: #dff2e9; color: var(--adl-accent); }
.adl-demo.is-filled { border-style: solid; border-color: var(--adl-accent-2); }

.adl-note { display: flex; gap: 10px; margin-top: 22px; padding: 12px 14px; border-radius: 11px; background: #eef3f8; color: #4f6373; font-size: 12.5px; }
.adl-note .fa-solid { margin-top: 3px; }

.adl-portals { display: flex; gap: 10px; margin-top: 18px; }
.adl-portals a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; border: 1px solid var(--adl-line); border-radius: 10px; background: #fff; color: #4d5d55; font-size: 13px; font-weight: 700; text-decoration: none; }
.adl-portals a:hover { border-color: var(--adl-accent-2); color: var(--adl-accent); }

@media (max-width: 900px) {
  .adl-shell { grid-template-columns: 1fr; }
  .adl-story { display: none; }
  .adl-mobile-brand { display: flex; }
}
@media (prefers-reduced-motion: reduce) { .adl-submit, .adl-submit-ico { transition: none; } .adl-submit.is-loading .adl-spinner { animation: none; } }
