* { box-sizing: border-box; }

:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #101522;
  color: #f5f7fb;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(86, 107, 190, .22), transparent 55%),
    #101522;
}

.page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 18px;
}

.login-card {
  width: min(100%, 430px);
  padding: 38px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 22px;
  background: rgba(24, 31, 48, .94);
  box-shadow: 0 24px 80px rgba(0,0,0,.35);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 28px;
  border-radius: 13px;
  background: #7185f5;
  color: white;
  font-size: 22px;
  font-weight: 800;
}

.eyebrow {
  margin: 0 0 10px;
  color: #9eacff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
}

h1 {
  margin: 0;
  font-size: clamp(25px, 5vw, 30px);
  letter-spacing: -.04em;
}

.subtitle {
  margin: 10px 0 30px;
  color: #aab3c5;
  line-height: 1.5;
  font-size: 14px;
}

form { display: grid; gap: 11px; }

label {
  color: #e5e9f2;
  font-size: 13px;
  font-weight: 650;
}

input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #39445b;
  border-radius: 10px;
  outline: none;
  background: #131a29;
  color: #f5f7fb;
  font: inherit;
  font-size: 14px;
}

input::placeholder { color: #758097; }
input:focus { border-color: #8797ff; box-shadow: 0 0 0 3px rgba(135,151,255,.15); }

.password-heading { margin-top: 8px; }

.captcha-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  margin: 8px 0 2px;
  overflow-x: auto;
}

button {
  height: 49px;
  margin-top: 4px;
  border: 0;
  border-radius: 10px;
  background: #7185f5;
  color: white;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  transition: filter .15s ease, transform .15s ease;
}

button:hover { filter: brightness(1.08); }
button:active { transform: translateY(1px); }
button:focus-visible { outline: 3px solid #c1caff; outline-offset: 3px; }

.form-message {
  min-height: 20px;
  margin: 2px 0 0;
  color: #ffd18b;
  font-size: 13px;
  line-height: 1.45;
}

.footer-note {
  margin: 24px 0 0;
  color: #78849b;
  text-align: center;
  font-size: 12px;
}

@media (max-width: 480px) {
  .login-card { padding: 28px 22px; }
}
