:root {
  --bg: #070b12;
  --panel: #101925;
  --panel-raised: #162231;
  --line: #263649;
  --line-strong: #35506a;
  --text: #f5f8fc;
  --muted: #9aaabd;
  --subtle: #6f8298;
  --accent: #5db2ff;
  --accent-strong: #2e83d5;
  --success: #32d47e;
  --shadow: rgba(0, 0, 0, .46);
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -12%, rgba(57, 145, 229, .17), transparent 34rem),
    linear-gradient(145deg, #080e17 0%, var(--bg) 64%, #05080e 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

button, input { font: inherit; }

.login-shell {
  display: grid;
  min-height: 100dvh;
  padding: 16px;
  place-items: center;
}

.login-card {
  display: flex;
  flex-direction: column;
  width: min(440px, calc(100vw - 32px));
  height: min(956px, calc(100dvh - 32px));
  min-height: min(956px, calc(100dvh - 32px));
  padding: 36px;
  border: 1px solid rgba(111, 151, 191, .26);
  border-radius: 0;
  background: linear-gradient(160deg, rgba(19, 31, 45, .98), rgba(11, 18, 28, .98));
  box-shadow: 0 30px 80px var(--shadow), 0 0 0 8px rgba(5, 10, 17, .32), 0 0 44px rgba(49, 145, 227, .11);
}

.brand-row { display: flex; align-items: center; gap: 12px; }
.brand-mark { display: grid; width: 38px; height: 38px; border: 1px solid rgba(93, 178, 255, .35); border-radius: 12px; place-items: center; background: rgba(93, 178, 255, .12); }
.brand-mark span { width: 12px; height: 12px; border-radius: 50%; background: var(--success); box-shadow: 0 0 16px rgba(50, 212, 126, .75); }
.eyebrow { margin: 0 0 2px; color: var(--subtle); font-size: 10px; font-weight: 700; letter-spacing: .18em; }
.brand-name { margin: 0; color: var(--text); font-size: 17px; font-weight: 700; }
.secure-badge { margin-left: auto; padding: 8px 10px; border: 1px solid rgba(50, 212, 126, .2); border-radius: 999px; color: #a9e9c5; background: rgba(50, 212, 126, .08); font-size: 11px; font-weight: 600; white-space: nowrap; }
.secure-dot { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: var(--success); vertical-align: 1px; }

.intro { margin: 46px 0 28px; }
.kicker { margin: 0 0 10px; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(30px, 7vw, 42px); letter-spacing: -.04em; line-height: 1.06; }
.intro-copy { max-width: 36rem; margin: 16px 0 0; color: var(--muted); font-size: 15px; line-height: 1.55; }

.login-form { display: grid; gap: 10px; }
.login-form label { margin-top: 7px; color: var(--muted); font-size: 13px; font-weight: 600; }
.login-form input { width: 100%; min-height: 52px; padding: 0 15px; border: 1px solid var(--line); border-radius: 14px; outline: 0; color: var(--text); background: rgba(6, 12, 20, .72); transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.login-form input:focus { border-color: var(--accent); background: rgba(10, 22, 36, .9); box-shadow: 0 0 0 3px rgba(93, 178, 255, .16); }
.login-form button { display: flex; width: 100%; min-height: 56px; margin-top: 14px; padding: 0 18px; align-items: center; justify-content: space-between; border: 1px solid rgba(116, 196, 255, .55); border-radius: 15px; color: #fff; background: linear-gradient(135deg, var(--accent-strong), #3fa3ed); box-shadow: 0 12px 24px rgba(46, 131, 213, .23), inset 0 1px 0 rgba(255, 255, 255, .16); cursor: pointer; font-weight: 700; transition: transform .16s ease, filter .16s ease, box-shadow .16s ease; }
.login-form button:hover { filter: brightness(1.08); box-shadow: 0 14px 28px rgba(46, 131, 213, .3), inset 0 1px 0 rgba(255, 255, 255, .16); }
.login-form button:active { transform: scale(.985); }
.login-form button:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.button-arrow { font-size: 22px; line-height: 1; }

.login-meta { display: flex; gap: 18px; margin-top: 24px; padding-top: 19px; border-top: 1px solid rgba(38, 54, 73, .9); color: var(--muted); font-size: 12px; }
.meta-item { display: inline-flex; align-items: center; gap: 7px; }
.meta-icon { color: var(--accent); font-size: 11px; }
.card-footer { display: flex; justify-content: center; gap: 12px; margin-top: auto; padding-top: 30px; color: var(--subtle); font-size: 11px; text-align: center; }
.version { white-space: nowrap; }

@media (max-width: 560px) {
  .login-shell { padding: 14px; }
  .login-card { width: 100%; height: auto; min-height: calc(100dvh - 28px); padding: 24px; }
  .secure-badge { padding-inline: 8px; font-size: 10px; }
  .login-meta { flex-direction: column; gap: 9px; }
  .card-footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
