/* app.alxfff.com — login UI v1
   Style: simple scientific (white + green #0E9F6E, thin lines, wide spacing)
   Contrast (computed): body #1F2937/white 14.68 · muted #4B5563/white 7.56
   · #6B7280/white 4.83 · white on #047857 5.48 · #047857/white 5.48
   · #065F46 on #ECFDF5 ≥4.5 — decorative accent #0E9F6E is not used for text. */

:root {
  --accent: #0E9F6E;        /* decorative only (logo, dots, ring) */
  --accent-strong: #047857; /* buttons, links — passes WCAG AA on white */
  --accent-deep: #065F46;
  --ink: #1F2937;
  --muted: #4B5563;
  --soft: #6B7280;
  --line: #E5E7EB;
  --bg: #F9FAFB;
  --card: #FFFFFF;
  --ring: rgba(14, 159, 110, 0.28);
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background-color: var(--bg);
  background-image: radial-gradient(#E2E8F0 1px, transparent 1px);
  background-size: 22px 22px;
}

.shell {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 16px;
}

/* ---- brand ---- */
.brand { text-align: center; margin-bottom: 26px; }
.brand-mark { width: 46px; height: 46px; display: block; margin: 0 auto; }
.brand-name {
  margin: 14px 0 2px;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--ink);
}
.brand-name-accent { color: var(--accent-strong); }
.brand-sub { margin: 0; font-size: 0.95rem; color: var(--muted); }

/* ---- card ---- */
.card {
  width: 100%;
  max-width: 400px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 30px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 12px 32px -12px rgba(16, 24, 40, 0.10);
}
.card-narrow { text-align: center; max-width: 380px; }
.card-title { margin: 0 0 6px; font-size: 1.22rem; font-weight: 700; color: var(--ink); }
.card-sub { margin: 0 0 22px; font-size: 0.92rem; color: var(--muted); }

/* ---- notice (honest stub feedback) ---- */
.notice {
  margin: 0 0 16px;
  padding: 10px 12px;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  border-radius: 10px;
  font-size: 0.86rem;
  color: var(--accent-deep);
}

/* ---- form ---- */
.field { margin-bottom: 16px; }
.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: var(--muted);
}
input {
  width: 100%;
  padding: 11px 13px;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #FFFFFF;
  border: 1px solid #D1D5DB;
  border-radius: 10px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input::placeholder { color: #9CA3AF; }
input:focus {
  outline: none;
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 3px var(--ring);
}

.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 64px; }
.pw-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  padding: 6px 8px;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-strong);
  border-radius: 8px;
  cursor: pointer;
}
.pw-toggle:hover { background: #F3FAF7; }

.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 2px 0 18px;
  font-size: 0.88rem;
}
.check { display: flex; align-items: center; gap: 8px; color: var(--muted); cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--accent-strong); }

.link { color: var(--accent-strong); font-weight: 600; text-decoration: none; }
.link:hover { color: var(--accent-deep); text-decoration: underline; }

.btn {
  display: block;
  width: 100%;
  padding: 12px 16px;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--accent-strong); color: #FFFFFF; }
.btn-primary:hover { background: var(--accent-deep); }
.btn-google {
  background: #FFFFFF;
  color: var(--ink);
  border-color: #D1D5DB;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.btn-google:hover { background: var(--bg); }
.google-g { width: 18px; height: 18px; }

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  font-size: 0.82rem;
  color: var(--soft);
}
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.card-foot { margin: 20px 0 0; text-align: center; font-size: 0.9rem; color: var(--muted); }

/* ---- footer ---- */
.foot { margin-top: 28px; text-align: center; font-size: 0.82rem; color: var(--soft); }
.foot-note { margin: 0; }
.foot-domain { margin: 2px 0 0; font-weight: 600; letter-spacing: 0.3px; }

/* ---- focus visibility ---- */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 2px;
}

/* ---- small screens ---- */
@media (max-width: 420px) {
  .shell { padding: 32px 12px; }
  .card { padding: 28px 20px; border-radius: 12px; }
  .brand { margin-bottom: 20px; }
}

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