:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #17233d;
  background: #edf3fb;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 15%, rgba(35, 91, 190, 0.14), transparent 34rem),
    radial-gradient(circle at 92% 92%, rgba(31, 133, 105, 0.11), transparent 30rem),
    #edf3fb;
}

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

.login-card {
  width: min(100%, 470px);
  padding: 42px;
  border: 1px solid #d2dceb;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 24px 70px rgba(27, 47, 84, 0.16);
}

.login-brand-logo {
  display: block;
  width: min(213px, 100%);
  height: auto;
  object-fit: contain;
}

h1 {
  margin: 24px 0 0;
  font-size: clamp(26px, 6vw, 34px);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.intro {
  margin: 16px 0 26px;
  color: #53647e;
  font-size: 15px;
  line-height: 1.55;
}

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

label {
  font-size: 14px;
  font-weight: 700;
}

input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #aebdd1;
  border-radius: 9px;
  color: #17233d;
  background: #fff;
  font: inherit;
}

input:focus {
  border-color: #2563c4;
  outline: 3px solid rgba(37, 99, 196, 0.16);
}

.microsoft-button {
  height: 50px;
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border: 0;
  border-radius: 9px;
  background: #235bbe;
  color: #fff;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.microsoft-button:hover { background: #174b9f; }
.microsoft-button:focus-visible { outline: 3px solid rgba(37, 99, 196, 0.26); outline-offset: 3px; }

.microsoft-mark {
  display: grid;
  grid-template-columns: repeat(2, 8px);
  gap: 2px;
}

.microsoft-mark i { width: 8px; height: 8px; background: #fff; }

.security-note {
  margin: 24px 0 0;
  padding-top: 20px;
  border-top: 1px solid #e3e9f2;
  color: #66758d;
  font-size: 12.5px;
  line-height: 1.55;
}

.login-message {
  margin: 0 0 20px;
  padding: 12px 14px;
  border: 1px solid #e0b267;
  border-radius: 8px;
  background: #fff8e8;
  color: #714a0a;
  font-size: 14px;
  line-height: 1.45;
}

.login-message.success {
  border-color: #83c4a3;
  background: #eefaf3;
  color: #1f6843;
}

@media (max-width: 540px) {
  .login-card { padding: 30px 24px; }
}
