* {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --bg: #080a0f;
  --card: #10131a;
  --card-border: #2a303c;
  --input: #090c11;
  --input-border: #303744;
  --text: #f4f6fa;
  --muted: #969dab;
  --accent: #7ddcff;
  --accent-hover: #a4e8ff;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(
      circle at 50% -10%,
      rgba(125, 220, 255, 0.10),
      transparent 38%
    ),
    var(--bg);
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 18px;
}

.login-card {
  width: min(100%, 450px);
  padding: 38px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 0;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.brand {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 36px;
}

.brand img {
  display: block;
  width: 320px;
  max-width: 100%;
  height: auto;
  max-height: 120px;
  object-fit: contain;
}

.heading {
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.subtitle {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.login-form {
  display: grid;
  gap: 9px;
}

.login-form > label {
  font-size: 13px;
  font-weight: 650;
  margin-top: 6px;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  height: 50px;
  border: 1px solid var(--input-border);
  border-radius: 0;
  background: var(--input);
  color: var(--text);
  padding: 0 14px;
  outline: none;
  font: inherit;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}

input::placeholder {
  color: #656b78;
}

input[type="text"]:focus,
input[type="password"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(125, 220, 255, 0.12);
}

.password-wrap {
  position: relative;
}

.password-wrap input {
  padding-right: 75px;
}

.show-password {
  position: absolute;
  right: 0;
  top: 0;
  height: 50px;
  border: 0;
  border-left: 1px solid var(--input-border);
  border-radius: 0;
  padding: 0 12px;
  background: #11151c;
  color: var(--accent);
  cursor: pointer;
  font-weight: 700;
}

.show-password:hover {
  background: #191e27;
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 9px 0 8px;
  font-size: 12px;
}

.remember {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  cursor: pointer;
}

.remember input {
  accent-color: var(--accent);
}

.login-button,
.secondary-button {
  width: 100%;
  height: 50px;
  border-radius: 0;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 0.12s,
    background 0.12s,
    border-color 0.12s;
}

.login-button {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #061017;
}

.login-button:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.secondary-button {
  border: 1px solid var(--input-border);
  background: #151922;
  color: var(--text);
}

.secondary-button:hover {
  background: #1b202b;
  border-color: #3a4252;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #646a76;
  font-size: 12px;
  margin: 22px 0;
}

.divider::before,
.divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--card-border);
}

.message {
  min-height: 18px;
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.footer-note {
  margin: 28px 0 0;
  text-align: center;
  color: #5f6571;
  font-size: 11px;
}

@media (max-width: 480px) {
  .page {
    padding: 16px;
  }

  .login-card {
    padding: 28px 20px;
  }

  .brand img {
    width: 280px;
  }

  h1 {
    font-size: 29px;
  }
}