:root {
  color-scheme: dark;
  --text: #ecf2ff;
  --muted: #9aa8c2;
  --accent: #7cff6b;
  --blue: #4ea1ff;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body.login-page {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: linear-gradient(90deg, rgba(6,9,19,.97), rgba(6,9,19,.68)), radial-gradient(circle at 78% 20%, rgba(78,161,255,.18), transparent 34%), radial-gradient(circle at 20% 90%, rgba(124,255,107,.12), transparent 34%), #070b14 url("images/Home_ART.jpg") center / cover fixed;
}

.login-page::before { content: ""; position: fixed; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(to bottom, black, transparent 80%); }
.login-shell { position: relative; width: min(1180px, calc(100% - 40px)); min-height: 100vh; margin: auto; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(380px, .75fr); align-items: center; gap: clamp(48px, 8vw, 120px); padding: 56px 0; }
.brand-mark { width: 66px; height: 66px; display: grid; place-items: center; margin-bottom: 38px; border: 1px solid rgba(124,255,107,.34); border-radius: 20px; color: var(--accent); background: linear-gradient(135deg, rgba(124,255,107,.18), rgba(78,161,255,.10)); box-shadow: 0 18px 50px rgba(0,0,0,.34), inset 0 0 22px rgba(124,255,107,.08); font-size: 32px; font-weight: 900; }
.eyebrow, .step { margin: 0 0 12px; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.login-intro h1 { max-width: 680px; margin: 0; font-size: clamp(48px, 7vw, 88px); line-height: .96; letter-spacing: -.055em; }
.login-intro h1 span { color: var(--accent); }
.intro-copy { max-width: 570px; margin: 28px 0 34px; color: #b6c3d9; font-size: clamp(17px, 2vw, 21px); line-height: 1.65; }
.alicia-note { display: flex; align-items: center; gap: 13px; color: #dbe7fb; }
.alicia-note small { display: block; margin-top: 3px; color: var(--muted); }
.alicia-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 7px rgba(124,255,107,.11), 0 0 24px rgba(124,255,107,.7); }
.login-panel { padding: clamp(28px, 4vw, 46px); border: 1px solid rgba(148,163,184,.18); border-radius: 28px; background: linear-gradient(155deg, rgba(18,29,51,.94), rgba(13,21,38,.88)); box-shadow: 0 32px 100px rgba(0,0,0,.46); backdrop-filter: blur(22px); }
.panel-heading h2 { margin: 0; font-size: clamp(28px, 3vw, 38px); letter-spacing: -.035em; }
.panel-heading > p:last-child { margin: 10px 0 28px; color: var(--muted); line-height: 1.5; }
.login-error, .empty-state { margin-bottom: 20px; padding: 14px 16px; border-radius: 13px; }
.login-error { color: #ffd7df; border: 1px solid rgba(255,91,125,.35); background: rgba(255,91,125,.12); }
.empty-state { border: 1px solid rgba(148,163,184,.18); background: rgba(255,255,255,.03); }
.empty-state p { margin: 6px 0 0; color: var(--muted); }
.login-form { display: grid; gap: 24px; }
.login-stage-title { margin-bottom: 10px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.profile-picker { display: grid; gap: 10px; min-width: 0; margin: 0; padding: 0; border: 0; }
.machine-picker { padding-top: 18px; border-top: 1px solid rgba(148,163,184,.18); }
.machine-card[hidden] { display: none; }
.machine-avatar { color: var(--blue); }
.profile-card { position: relative; display: grid; grid-template-columns: 48px minmax(0,1fr) 24px; align-items: center; gap: 14px; padding: 13px; border: 1px solid rgba(148,163,184,.18); border-radius: 16px; background: rgba(255,255,255,.025); cursor: pointer; transition: .18s ease; }
.profile-card:hover { transform: translateY(-1px); border-color: rgba(78,161,255,.4); background: rgba(255,255,255,.045); }
.profile-card input { position: absolute; opacity: 0; pointer-events: none; }
.profile-card:has(input:checked) { border-color: rgba(124,255,107,.52); background: linear-gradient(90deg, rgba(124,255,107,.12), rgba(78,161,255,.06)); box-shadow: inset 0 0 0 1px rgba(124,255,107,.07); }
.profile-avatar { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; color: var(--accent); background: #14243a; font-weight: 900; font-size: 20px; }
.profile-copy { min-width: 0; }
.profile-copy strong, .profile-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-copy small { margin-top: 4px; color: var(--muted); }
.profile-check { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: #07110a; background: var(--accent); opacity: 0; transform: scale(.7); transition: .18s ease; font-weight: 900; }
.profile-card:has(input:checked) .profile-check { opacity: 1; transform: scale(1); }
.password-field { display: grid; gap: 9px; color: #dce6f8; font-size: 13px; font-weight: 700; }
.password-field input { width: 100%; padding: 15px 16px; border: 1px solid rgba(148,163,184,.18); border-radius: 13px; outline: 0; color: var(--text); background: rgba(4,8,16,.66); font: inherit; }
.password-field input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(78,161,255,.12); }
.login-button { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 16px 18px; border: 0; border-radius: 14px; color: #07110a; background: linear-gradient(135deg, #8aff76, #65de73); cursor: pointer; font: inherit; font-weight: 900; box-shadow: 0 14px 32px rgba(124,255,107,.18); transition: transform .18s ease, filter .18s ease; }
.login-button:hover { transform: translateY(-2px); filter: brightness(1.06); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 820px) { .login-shell { grid-template-columns: 1fr; gap: 36px; padding: 38px 0; } .login-intro h1 { font-size: clamp(43px, 13vw, 68px); } .brand-mark { margin-bottom: 26px; } .intro-copy { margin-bottom: 22px; } }
@media (max-width: 480px) { .login-shell { width: min(100% - 24px, 1180px); padding: 24px 0; } .login-panel { padding: 23px 18px; border-radius: 22px; } }
