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

* { box-sizing: border-box; }

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

body {
  min-height: 100vh;
  overflow: hidden;
  background: #02050c;
}

.login-page {
  min-height: 100vh;
  position: relative;
  display: grid;
  place-items: center;
  padding: 24px;
  isolation: isolate;
  background:
    linear-gradient(rgba(1, 5, 14, .34), rgba(1, 5, 14, .68)),
    url("../assets/images/background.jpg") center / cover no-repeat;
}

.login-page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 50% 42%, rgba(32, 167, 255, .14), transparent 34%),
    radial-gradient(circle at 12% 18%, rgba(103, 67, 255, .14), transparent 30%),
    linear-gradient(180deg, rgba(2, 5, 12, .08), rgba(2, 5, 12, .56));
}

.space-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .30;
  background-image:
    linear-gradient(rgba(83, 206, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(83, 206, 255, .05) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at center, black 15%, transparent 74%);
}

.login-card {
  width: min(390px, 100%);
  position: relative;
  padding: 38px 36px 28px;
  overflow: hidden;
  border: 1px solid rgba(105, 217, 255, .30);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(11, 24, 47, .78), rgba(4, 10, 23, .84));
  box-shadow:
    0 28px 85px rgba(0, 0, 0, .48),
    0 0 54px rgba(42, 167, 255, .13),
    inset 0 1px rgba(255, 255, 255, .06);
  backdrop-filter: blur(18px) saturate(1.15);
}

.login-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, #74e5ff, transparent);
  opacity: .65;
}

.logo-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border: 1px solid rgba(102, 225, 255, .42);
  border-radius: 16px;
  transform: rotate(45deg);
  background: rgba(16, 70, 114, .26);
  box-shadow: 0 0 32px rgba(70, 209, 255, .22), inset 0 0 18px rgba(99, 220, 255, .08);
}

.logo-mark span {
  width: 20px;
  height: 20px;
  border: 2px solid #83edff;
  border-top-color: transparent;
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(114, 230, 255, .75);
}

.eyebrow {
  margin: 0 0 8px;
  color: #68ddff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .22em;
}

h1 {
  margin: 0;
  font-size: clamp(31px, 8vw, 42px);
  line-height: 1;
  letter-spacing: .08em;
  color: #f5fdff;
  text-shadow: 0 0 24px rgba(59, 199, 255, .32);
}

.subtitle {
  margin: 13px 0 28px;
  color: rgba(224, 242, 255, .64);
  font-size: 14px;
  line-height: 1.5;
}

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

label {
  display: grid;
  gap: 7px;
}

label > span {
  color: rgba(222, 244, 255, .73);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .10em;
  text-transform: uppercase;
}

input {
  width: 100%;
  border: 1px solid rgba(103, 209, 255, .24);
  border-radius: 11px;
  outline: none;
  padding: 13px 14px;
  color: #f3fbff;
  font: inherit;
  background: rgba(3, 12, 25, .72);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .015);
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

input:focus {
  border-color: rgba(102, 224, 255, .82);
  background: rgba(4, 17, 33, .88);
  box-shadow: 0 0 0 3px rgba(66, 194, 255, .10), 0 0 24px rgba(45, 166, 255, .08);
}

button {
  width: 100%;
  margin-top: 4px;
  border: 1px solid rgba(107, 226, 255, .64);
  border-radius: 11px;
  padding: 13px 16px;
  color: white;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .16em;
  cursor: pointer;
  background:
    linear-gradient(135deg, rgba(17, 111, 183, .96), rgba(27, 68, 173, .96));
  box-shadow: 0 10px 30px rgba(19, 100, 214, .25), inset 0 1px rgba(255, 255, 255, .18);
  transition: transform .14s ease, filter .14s ease, box-shadow .14s ease;
}

button:hover {
  transform: translateY(-1px);
  filter: brightness(1.10);
  box-shadow: 0 13px 34px rgba(32, 135, 241, .32), 0 0 22px rgba(62, 203, 255, .14);
}

button:active { transform: translateY(0) scale(.99); }
button:disabled { cursor: wait; opacity: .72; }

.login-status {
  min-height: 19px;
  margin: -2px 0 0;
  color: #ff8da0;
  font-size: 13px;
}

.login-status.ok { color: #83f7d5; }

.card-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(103, 211, 255, .10);
  color: rgba(197, 231, 246, .42);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .15em;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #45efc1;
  box-shadow: 0 0 10px #45efc1;
}

@media (max-width: 520px) {
  .login-page { padding: 16px; }
  .login-card { padding: 31px 24px 24px; border-radius: 18px; }
}
