:root { color-scheme: dark; }

* { box-sizing: border-box; }

body.login-page {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
  color: #eef3f8;
  background:
    linear-gradient(135deg, rgba(66, 179, 167, .18), transparent 38%),
    linear-gradient(315deg, rgba(215, 162, 81, .16), transparent 42%),
    linear-gradient(135deg, #0d1117 0%, #151922 48%, #111820 100%);
}

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

.login-panel {
  width: min(420px, calc(100vw - 48px));
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  background: rgba(16, 20, 28, .84);
  box-shadow: 0 28px 80px rgba(0,0,0,.42);
  backdrop-filter: blur(18px);
  padding: 28px;
}

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

.login-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #42b3a7, #d7a251);
  color: #091016;
  font-weight: 900;
  font-size: 24px;
}

h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.05;
}

p {
  margin: 6px 0 0;
  color: #aeb8c5;
}

.login-form {
  display: grid;
  gap: 14px;
}

label span {
  display: block;
  margin-bottom: 7px;
  color: #c8d0db;
  font-size: 14px;
}

input {
  width: 100%;
  border: 1px solid #303948;
  border-radius: 8px;
  background: #0c1118;
  color: #f4f7fb;
  font: inherit;
  padding: 12px 13px;
  outline: none;
}

input:focus {
  border-color: #57bdb1;
  box-shadow: 0 0 0 3px rgba(87, 189, 177, .14);
}

.remember-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #c8d0db;
}

.remember-row input {
  width: auto;
  accent-color: #57bdb1;
}

.remember-row span {
  margin: 0;
}

button {
  border: 0;
  border-radius: 8px;
  padding: 12px 14px;
  background: #57bdb1;
  color: #071015;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform .08s ease, filter .15s ease, opacity .15s ease;
}

button:active { transform: scale(.98); }
button:disabled { opacity: .65; cursor: wait; }

.login-message {
  min-height: 20px;
  color: #ffb8a8;
  font-size: 14px;
  line-height: 1.4;
}

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

  .login-panel {
    width: min(360px, calc(100vw - 32px));
    padding: 22px;
  }

  .login-brand {
    gap: 12px;
  }

  .login-mark {
    width: 44px;
    height: 44px;
    font-size: 22px;
  }

  h1 {
    font-size: 28px;
  }
}
