:root {
    --ink: #14203a;
    --muted: #66728a;
    --line: #dce2ec;
    --canvas: #f3f5f9;
    --surface: #ffffff;
    --primary: #49329b;
    --primary-dark: #352174;
    --primary-soft: #f1eefb;
    --teal: #087f7a;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    color: var(--ink);
    background: var(--canvas);
}

* { box-sizing: border-box; }
body { min-width: 320px; min-height: 100vh; margin: 0; display: grid; grid-template-rows: 72px 1fr auto; background: var(--canvas); }
button, select, a { font: inherit; letter-spacing: 0; }
.login-topbar { display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(18px, 4vw, 56px); background: var(--surface); border-bottom: 1px solid var(--line); }
.login-brand { display: flex; align-items: center; gap: 15px; color: var(--ink); text-decoration: none; }
.login-brand img { width: 108px; height: 34px; object-fit: contain; }
.login-brand > span { width: 1px; height: 36px; background: var(--line); }
.login-brand strong { font-size: 19px; }
.language-control select { min-width: 140px; height: 40px; padding: 0 34px 0 12px; border: 1px solid var(--line); border-radius: 7px; background: white; color: var(--ink); font-weight: 700; cursor: pointer; }
.language-control select:focus { outline: 3px solid rgba(73, 50, 155, .12); border-color: var(--primary); }

.login-shell { width: min(1120px, calc(100% - 40px)); margin: auto; padding: 56px 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 430px); align-items: center; gap: clamp(54px, 9vw, 120px); }
.login-intro { max-width: 570px; }
.eyebrow { margin: 0 0 15px; color: var(--primary); font-size: 11px; font-weight: 850; }
.login-intro h1 { max-width: 540px; margin: 0 0 18px; font-size: clamp(40px, 5vw, 62px); line-height: 1.04; letter-spacing: 0; }
.login-intro > p:not(.eyebrow) { max-width: 540px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.65; }
.login-intro ul { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 15px; }
.login-intro li { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.login-intro li > span { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; background: #e5f5f2; color: var(--teal); font-weight: 900; }
.login-intro li i::before { content: "✓"; font-style: normal; }

.login-panel { padding: 38px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 20px 60px rgba(20, 32, 58, .11); }
.panel-mark { margin-bottom: 24px; }
.panel-mark span { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 8px; background: var(--primary); color: white; font-weight: 850; }
.panel-kicker { margin: 0 0 7px; color: var(--primary); font-size: 11px; font-weight: 850; text-transform: uppercase; }
.login-panel h2 { margin: 0 0 10px; font-size: 27px; line-height: 1.2; }
.login-panel > p:not(.panel-kicker) { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.microsoft-button { min-height: 52px; margin-top: 29px; padding: 0 15px; display: grid; grid-template-columns: 24px minmax(0, 1fr) 20px; align-items: center; gap: 12px; border: 1px solid var(--primary); border-radius: 7px; background: var(--primary); color: white; text-align: center; text-decoration: none; font-weight: 800; transition: background .15s ease, border-color .15s ease; }
.microsoft-button:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.microsoft-button:focus { outline: 3px solid rgba(73, 50, 155, .18); outline-offset: 2px; }
.microsoft-mark { width: 18px; height: 18px; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 2px; }
.microsoft-mark i:nth-child(1) { background: #f25022; }
.microsoft-mark i:nth-child(2) { background: #7fba00; }
.microsoft-mark i:nth-child(3) { background: #00a4ef; }
.microsoft-mark i:nth-child(4) { background: #ffb900; }
.button-arrow { font-size: 19px; }
.security-note { margin-top: 20px; padding-top: 19px; display: flex; align-items: flex-start; gap: 9px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.5; }
.security-note > span:first-child { color: var(--teal); font-weight: 900; }
footer { min-height: 58px; padding: 0 clamp(18px, 4vw, 56px); display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 11px; border-top: 1px solid var(--line); background: rgba(255,255,255,.55); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 820px) {
    body { grid-template-rows: 64px 1fr auto; }
    .login-topbar { padding: 0 16px; }
    .login-brand { gap: 10px; }
    .login-brand img { width: 84px; }
    .login-brand > span { height: 30px; }
    .login-brand strong { font-size: 17px; }
    .language-control select { min-width: 126px; max-width: 126px; }
    .login-shell { width: min(520px, calc(100% - 28px)); padding: 34px 0 42px; grid-template-columns: 1fr; gap: 30px; }
    .login-intro h1 { font-size: 36px; }
    .login-intro > p:not(.eyebrow) { font-size: 15px; }
    .login-intro ul { margin-top: 24px; }
    .login-panel { padding: 28px 22px; }
    footer { padding: 17px; flex-direction: column; justify-content: center; gap: 5px; }
}

@media (max-width: 420px) {
    .login-brand > span, .login-brand strong { display: none; }
    .login-intro h1 { font-size: 31px; }
}
