:root {
  color-scheme: light;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  color: #172033;
  background: #f2f5fb;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 15% 12%, rgba(45, 91, 255, .14), transparent 32rem),
    radial-gradient(circle at 88% 85%, rgba(46, 197, 153, .12), transparent 30rem),
    #f4f7fc;
}

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

.login-card {
  width: min(100%, 430px);
  padding: 38px;
  border: 1px solid rgba(29, 48, 84, .09);
  border-radius: 24px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 26px 70px rgba(36, 55, 91, .14);
}

.brand {
  display: block;
}

.brand img {
  display: block;
  width: min(180px, 52vw);
  height: 56px;
  border-radius: 0;
  object-fit: contain;
  object-position: left center;
}

.heading { margin: 32px 0 26px; }
.eyebrow { margin: 0 0 8px; color: #315ce8; font-size: 11px; font-weight: 750; letter-spacing: .18em; }
.heading h1 { margin: 0; font-size: 30px; line-height: 1.25; }
.heading > p:last-child { margin: 10px 0 0; color: #6f7a90; font-size: 14px; }

form { display: grid; gap: 18px; }
label { display: grid; gap: 8px; color: #39445a; font-size: 14px; font-weight: 650; }

input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #d6dce8;
  border-radius: 12px;
  outline: none;
  color: #172033;
  background: #fff;
  font: inherit;
  font-weight: 500;
  transition: border-color .16s ease, box-shadow .16s ease;
}

input:focus {
  border-color: #315ce8;
  box-shadow: 0 0 0 4px rgba(49, 92, 232, .11);
}

button {
  height: 48px;
  margin-top: 2px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #315ce8, #2348c8);
  box-shadow: 0 10px 24px rgba(49, 92, 232, .24);
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

button:hover { filter: brightness(1.04); }
button:focus-visible { outline: 3px solid rgba(49, 92, 232, .25); outline-offset: 3px; }
button:disabled { opacity: .64; cursor: wait; }

.form-error {
  padding: 11px 13px;
  border: 1px solid #ffd2d2;
  border-radius: 10px;
  color: #b4232b;
  background: #fff3f3;
  font-size: 13px;
}

.security-note {
  margin: 22px 0 0;
  color: #8790a2;
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

@media (max-width: 520px) {
  .login-layout { padding: 18px 14px; }
  .login-card { padding: 28px 22px; border-radius: 20px; }
  .heading { margin-top: 30px; }
}
