@font-face {
  font-family: "Playfull Rocket";
  src: url("/fonts/playfull-rocket.ttf") format("truetype");
  font-display: swap;
}

:root {
  color-scheme: dark;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  background: #070912;
  color: #f7f8ff;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body {
  background:
    radial-gradient(circle at 18% 10%, #6d50ed32, transparent 34%),
    radial-gradient(circle at 88% 92%, #24d6ff1c, transparent 28%),
    #070912;
}
button, input { font: inherit; }

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.login-card {
  width: min(460px, 100%);
  padding: 34px;
  border: 1px solid #252d43;
  border-radius: 24px;
  background: linear-gradient(145deg, #111625f2, #0b0f1cf5);
  box-shadow: 0 32px 90px #000a, inset 0 1px 0 #ffffff0d;
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  font-family: "Playfull Rocket", Inter, sans-serif;
  letter-spacing: .04em;
}
.brand small { display: block; margin-top: 3px; color: #8994b0; font-size: 9px; letter-spacing: .25em; }
.brand__mark {
  position: relative;
  width: 48px;
  height: 48px;
  border: 1px solid #ffffff20;
  border-radius: 15px;
  background: linear-gradient(145deg, #8a6cff, #4630bc);
  box-shadow: 0 12px 32px #7054ff4a;
  transform: rotate(-4deg);
}
.brand__mark i { position: absolute; top: 50%; width: 6px; border-radius: 9px; background: white; transform: translateY(-50%) rotate(21deg); }
.brand__mark i:nth-child(1) { left: 13px; height: 18px; }
.brand__mark i:nth-child(2) { left: 21px; height: 27px; }
.brand__mark i:nth-child(3) { left: 30px; height: 13px; }

.login-copy { margin-top: 38px; }
.kicker { color: #7460e5; font-size: 9px; font-weight: 900; letter-spacing: .21em; }
h1 {
  margin: 8px 0 11px;
  font-family: "Playfull Rocket", Inter, sans-serif;
  font-size: clamp(30px, 7vw, 42px);
  font-weight: 400;
  line-height: 1;
}
.login-copy p { margin: 0; color: #8c96b1; font-size: 12px; line-height: 1.65; }

form { margin-top: 29px; }
label { display: block; margin-bottom: 8px; color: #bbc3d7; font-size: 10px; font-weight: 800; }
.password-field { position: relative; }
input {
  width: 100%;
  height: 50px;
  padding: 0 92px 0 14px;
  border: 1px solid #293149;
  border-radius: 12px;
  outline: 0;
  background: #080c16;
  color: white;
  transition: border-color .15s, box-shadow .15s;
}
input:focus { border-color: #8068ff8a; box-shadow: 0 0 0 4px #8068ff16; }
.password-field button {
  position: absolute;
  top: 7px;
  right: 7px;
  height: 36px;
  padding: 0 11px;
  border: 0;
  border-radius: 8px;
  background: #171c2d;
  color: #9da7bf;
  font-size: 9px;
  font-weight: 850;
  cursor: pointer;
}
.error { margin: 10px 0 0; color: #ff899f; font-size: 10px; line-height: 1.45; }
.login-button {
  width: 100%;
  min-height: 48px;
  margin-top: 14px;
  border: 1px solid #a391ff55;
  border-radius: 11px;
  background: linear-gradient(135deg, #8b6eff, #6146d7);
  color: white;
  box-shadow: 0 10px 28px #6d50ed38;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}
.login-button:disabled { opacity: .55; cursor: wait; }
.security-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  margin-top: 24px;
  padding-top: 19px;
  border-top: 1px solid #1d2436;
}
.security-note span { width: 8px; height: 8px; margin-top: 3px; border-radius: 50%; background: #62f3bd; box-shadow: 0 0 12px #62f3bd88; }
.security-note p { margin: 0; color: #68738e; font-size: 9px; line-height: 1.55; }

@media (max-width: 540px) {
  .login-shell { padding: 16px; }
  .login-card { padding: 26px 22px; border-radius: 20px; }
}
