:root {
  color-scheme: dark;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --background: #101114;
  --surface: #1b1d22;
  --field: #13151a;
  --border: #393d47;
  --text: #f4f4f5;
  --muted: #a8abb3;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --focus: #60a5fa;
  --success: #22c55e;
  --error: #f87171;
  color: var(--text);
  background: var(--background);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
  background: radial-gradient(ellipse at 80% 0%, #172236 0, transparent 48%), var(--background);
}
.login-card {
  width: 100%;
  max-width: 480px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 24px 80px #0005;
}
.brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 34px;
  border-bottom: 1px solid var(--border);
  border-radius: 17px 17px 0 0;
  background: #000;
}
.logo-window { width: 200px; max-width: 65%; }
.logo-window img {
  display: block;
  width: 100%;
  height: 94px;
  object-fit: cover;
  object-position: 50% 45%;
}
.product-name { color: var(--muted); font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; }
.card-content { padding: 32px 36px 26px; }
.eyebrow { margin: 0 0 14px; color: var(--focus); font-size: 11px; font-weight: 700; letter-spacing: 1.8px; line-height: 1.5; }
h1 { margin: 0 0 12px; font-size: 29px; line-height: 1.2; letter-spacing: -.8px; }
.intro { color: var(--muted); font-size: 15px; line-height: 1.6; margin: 0 0 28px; }
label { display: block; font-size: 14px; font-weight: 500; margin: 20px 0 9px; }
input {
  display: block;
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #525763;
  border-radius: 8px;
  background: var(--field);
  color: var(--text);
  font: inherit;
  min-height: 48px;
}
input:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 48px;
  padding: 13px 16px;
  margin-top: 26px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  transition: background-color .15s ease;
}
.button-primary { color: #fff; background: var(--primary); }
.button-primary:hover { background: var(--primary-hover); }
.button-secondary { color: var(--text); background: #252830; border-color: #525763; justify-content: center; }
.button-secondary:hover { background: #313640; }
button:disabled { opacity: .65; cursor: wait; }
.status-success { display: flex; align-items: center; gap: 8px; color: var(--success); }
.status-dot { width: 7px; height: 7px; background: currentColor; border-radius: 50%; flex-shrink: 0; }
.success-symbol { display: grid; place-items: center; width: 48px; height: 48px; margin: 24px 0 20px; border: 1px solid #28583a; border-radius: 50%; color: var(--success); background: #152a1d; font-size: 25px; }
#identity { overflow-wrap: anywhere; font-size: 14px; line-height: 1.7; margin: 0 0 14px; }
#account-title:focus { outline: none; }
.message-error { font-size: 14px; line-height: 1.6; margin: 20px 0 0; padding: 12px 14px; color: var(--error); background: #321c20; border: 1px solid #74363d; border-radius: 8px; }
.message-error:empty { display: none; }
footer { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); line-height: 1.6; }
footer span { margin: 0 5px; }
[hidden] { display: none !important; }
@media (max-width: 480px) {
  body { padding: 20px 14px; }
  .brand { padding: 16px 24px; gap: 12px; }
  .card-content { padding: 28px 24px 24px; }
  .logo-window { width: 180px; }
  .logo-window img { height: 85px; }
  .product-name { font-size: 11px; letter-spacing: 1px; }
  h1 { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) { button { transition: none; } }
