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

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background:
    radial-gradient(circle at 16% 20%, rgba(45, 117, 236, .2), transparent 32rem),
    radial-gradient(circle at 86% 80%, rgba(35, 153, 99, .13), transparent 28rem),
    #0b1220;
}

button, input { font: inherit; }

.login-layout {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 18px;
}

.login-card {
  width: min(100%, 440px);
  padding: 38px;
  border: 1px solid #27364e;
  border-radius: 18px;
  background: rgba(20, 31, 49, .94);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .36);
}

.brand-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg, #2877ef, #1657c7);
  box-shadow: 0 10px 28px rgba(31, 104, 224, .32);
  font-weight: 800;
  letter-spacing: .04em;
}

.eyebrow {
  margin: 24px 0 6px;
  color: #6fa6ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
}

h1 { margin: 0; font-size: clamp(28px, 5vw, 34px); line-height: 1.15; }

.intro { margin: 12px 0 28px; color: #a9b7ca; line-height: 1.6; }

label { display: block; margin: 0 0 8px; color: #dce6f4; font-size: 14px; font-weight: 700; }

input {
  width: 100%;
  height: 50px;
  margin: 0 0 18px;
  padding: 0 14px;
  border: 1px solid #354761;
  border-radius: 10px;
  outline: none;
  background: #0f1929;
  color: #fff;
  transition: border-color .18s, box-shadow .18s;
}

input:focus { border-color: #4c8ff2; box-shadow: 0 0 0 4px rgba(53, 126, 235, .16); }

.password-label { display: flex; align-items: center; justify-content: space-between; }

.text-button {
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #78adff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.message { min-height: 22px; margin: -3px 0 10px; color: #ffaaa8; font-size: 13px; line-height: 1.45; }

.submit-button {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #2375ec, #155bcf);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(28, 100, 211, .26);
}

.submit-button:hover { filter: brightness(1.07); }
.submit-button:disabled { cursor: wait; opacity: .7; }

.security-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 24px;
  padding: 14px;
  border: 1px solid #2c405d;
  border-radius: 10px;
  background: #111e30;
  color: #9fb0c6;
  font-size: 12px;
  line-height: 1.5;
}

.security-note span { color: #48c883; }
.security-note p { margin: 0; }
.security-note strong { color: #dbe8f8; }

@media (max-width: 520px) {
  .login-card { padding: 28px 22px; border-radius: 14px; }
}
