:root {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
  --brand-primary: #FF5A0A;
  --brand-hover: #E94E00;
  --brand-soft: #FFF1E8;
  --page: #F6F7F9;
  --ink: #141824;
  --muted: #687386;
  --line: #E7EAF0;
  color: var(--ink);
  background: var(--page);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: 100%; max-width: 460px; padding: 32px; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: 0 4px 20px rgba(16,24,40,.04); }
header { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.brand { font-size: 24px; font-weight: 800; color: var(--brand-primary); }
.language { position: relative; max-width: 100%; font-size: 13px; }
.language summary { display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; list-style: none; font-weight: 700; }
.language summary::-webkit-details-marker { display: none; }
.language summary:hover, .language[open] summary { border-color: var(--brand-primary); background: var(--brand-soft); }
.flag { display: block; flex-shrink: 0; width: 24px; height: 18px; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px rgba(20,24,36,.12); }
.chevron { width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); margin-inline-start: 3px; }
.language[open] .chevron { transform: translateY(2px) rotate(225deg); }
.language-options { position: absolute; z-index: 2; inset-inline-end: 0; top: calc(100% + 8px); width: 124px; max-height: 320px; overflow-y: auto; padding: 6px; border: 1px solid var(--line); border-radius: 8px; background: white; box-shadow: 0 8px 24px rgba(16,24,40,.12); }
.language-options button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 10px; background: white; color: var(--ink); text-align: start; border-radius: 5px; }
.language-options button:hover, .language-options button[aria-pressed="true"] { background: var(--brand-soft); color: var(--ink); }
.language-options button[aria-pressed="true"] { box-shadow: inset 0 0 0 1px var(--brand-primary); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
h1 { margin: 32px 0 8px; font-size: 26px; overflow-wrap: anywhere; }
.intro { margin: 0 0 24px; color: var(--muted); line-height: 1.6; }
.active-session { margin-bottom: 24px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--brand-soft); }
.active-session p { margin: 0 0 12px; font-size: 14px; line-height: 1.6; }
.active-session button { width: 100%; background: white; color: var(--ink); border: 1px solid var(--brand-primary); }
.active-session button:hover { background: var(--brand-soft); }
form { display: grid; gap: 10px; }
label { font-weight: 600; }
input, select, button { font: inherit; min-width: 0; max-width: 100%; border: 1px solid #c4cedb; border-radius: 6px; }
input, select { padding: 10px 12px; color: inherit; background: white; }
input { min-height: 44px; }
#password { margin-bottom: 4px; }
.show-password { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 400; }
.show-password input { min-height: auto; width: 18px; height: 18px; margin: 0; accent-color: var(--brand-primary); }
button { min-height: 46px; padding: 12px; background: var(--brand-primary); color: white; border: 0; font-weight: 700; cursor: pointer; }
button:disabled { opacity: .65; cursor: wait; }
#submit:hover:not(:disabled) { background: var(--brand-hover); }
:focus-visible { outline: 3px solid var(--brand-primary); outline-offset: 3px; }
#status { margin: 0; min-height: 24px; color: #b42318; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
@media (max-width: 480px) { body { padding: 16px; } .login-card { padding: 24px 18px; } }
