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

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  color: #eef6ff;
  background:
    radial-gradient(circle at 20% 15%, rgba(0, 229, 255, 0.10), transparent 32%),
    radial-gradient(circle at 82% 80%, rgba(126, 75, 255, 0.12), transparent 36%),
    #050914;
}

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

.login-card {
  width: min(100%, 420px);
  padding: 36px;
  border: 1px solid rgba(66, 207, 255, 0.20);
  border-radius: 24px;

  background:
    linear-gradient(
      145deg,
      rgba(14, 23, 43, 0.94),
      rgba(7, 12, 25, 0.97)
    );

  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.45),
    0 0 45px rgba(0, 214, 255, 0.05);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 42px;
}

.brand-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;

  border-radius: 13px;

  font-size: 20px;
  font-weight: 800;

  color: #05101b;

  background:
    linear-gradient(
      135deg,
      #45f4ff,
      #6c8cff 55%,
      #9f64ff
    );

  box-shadow:
    0 0 26px rgba(63, 226, 255, 0.24);
}

.brand-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand-version {
  margin-top: 2px;
  color: #718096;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.heading {
  margin-bottom: 28px;
}

.heading h1 {
  margin: 0 0 8px;
  font-size: 29px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.heading p {
  margin: 0;
  color: #7d8da5;
  font-size: 14px;
}

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

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

label span {
  color: #a9b7ca;
  font-size: 13px;
  font-weight: 600;
}

input {
  width: 100%;
  height: 50px;
  padding: 0 15px;

  border: 1px solid #1e2d45;
  border-radius: 12px;
  outline: none;

  color: #f4f8ff;
  background: #09111f;

  font: inherit;

  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

input:focus {
  border-color: #32d8ff;

  box-shadow:
    0 0 0 3px rgba(50, 216, 255, 0.08),
    0 0 20px rgba(50, 216, 255, 0.05);
}

button {
  height: 52px;
  margin-top: 4px;

  border: 0;
  border-radius: 12px;

  color: #04111c;
  font: inherit;
  font-weight: 800;

  cursor: pointer;

  background:
    linear-gradient(
      90deg,
      #3be7ff,
      #668dff 55%,
      #946cff
    );

  box-shadow:
    0 10px 28px rgba(61, 195, 255, 0.15);

  transition:
    transform 160ms ease,
    opacity 160ms ease;
}

button:hover {
  transform: translateY(-1px);
}

button:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.login-error {
  padding: 11px 13px;

  border: 1px solid rgba(255, 91, 122, 0.22);
  border-radius: 10px;

  color: #ff8ca4;
  background: rgba(255, 63, 105, 0.06);

  font-size: 13px;
}

.security-note {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;

  margin-top: 26px;

  color: #5e7088;
  font-size: 12px;
}

.security-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;

  background: #43e89a;
  box-shadow: 0 0 10px rgba(67, 232, 154, 0.65);
}

@media (max-width: 520px) {
  .login-page {
    padding: 16px;
  }

  .login-card {
    padding: 28px 22px;
    border-radius: 20px;
  }
}
