:root {
    --brand: #0099d8;
    --brand-dark: #007bb0;
    --text: #1f2933;
    --muted: #6b7785;
    --bg: #eef3f7;
    --card: #ffffff;
    --border: #d5dde5;
    --danger-bg: #fdecea;
    --danger: #a4262c;
}
@media (prefers-color-scheme: dark) {
    :root { --text: #e6ebf0; --muted: #9aa7b4; --bg: #11161c; --card: #1a2129; --border: #2c3640; --danger-bg: #3a1d1f; --danger: #f1a7aa; }
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
    font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg); color: var(--text);
    display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 16px;
}
.card { width: 100%; max-width: 400px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 32px; box-shadow: 0 8px 30px rgba(0,0,0,.06); }
.logo { display: block; width: 200px; max-width: 70%; height: auto; margin: 0 auto 24px; }
h1 { font-size: 1.4rem; margin: 0 0 4px; text-align: center; }
.muted { color: var(--muted); text-align: center; margin: 0 0 20px; }
label { display: block; font-size: .9rem; margin: 14px 0 6px; }
input[type=email], input[type=password] { width: 100%; padding: 10px 12px; font-size: 1rem; border: 1px solid var(--border); border-radius: 8px; background: transparent; color: var(--text); }
input:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 11px 14px; font-size: 1rem; border-radius: 8px; border: 1px solid transparent; cursor: pointer; text-decoration: none; font-weight: 600; }
.btn-primary { background: var(--brand); color: #fff; margin-top: 20px; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-microsoft { background: var(--card); color: var(--text); border-color: var(--border); margin-top: 8px; }
.btn-microsoft:hover { border-color: var(--brand); }
.btn-link { background: none; color: var(--muted); font-weight: 400; margin-top: 16px; }
.divider { display: flex; align-items: center; gap: 10px; color: var(--muted); margin: 20px 0 4px; font-size: .85rem; }
.divider::before, .divider::after { content: ""; flex: 1; border-top: 1px solid var(--border); }
.alert { background: var(--danger-bg); color: var(--danger); padding: 10px 12px; border-radius: 8px; margin: 12px 0; font-size: .95rem; }
.apps { list-style: none; padding: 0; margin: 0; }
.card:has(.checks), .card:has(.step) { max-width: 560px; }
.alert-ok { background: #e8f5e9; color: #1b5e20; }
@media (prefers-color-scheme: dark) { .alert-ok { background: #1d3a1f; color: #a5d6a7; } }
.checks { list-style: none; padding: 0; margin: 16px 0; }
.checks li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.checks .icon { width: 20px; flex-shrink: 0; font-weight: 700; }
.checks .ok .icon { color: #2e7d32; }
.checks .todo .icon { color: var(--danger); }
.step { border-top: 1px solid var(--border); padding-top: 14px; margin-top: 18px; }
.step h2 { font-size: 1.05rem; margin: 0 0 6px; }
.small { font-size: .85rem; }
code { font-family: ui-monospace, Consolas, monospace; font-size: .85em; }
input[type=text] { width: 100%; padding: 10px 12px; font-size: 1rem; border: 1px solid var(--border); border-radius: 8px; background: transparent; color: var(--text); }
textarea { width: 100%; font-family: ui-monospace, Consolas, monospace; font-size: .75rem; border: 1px solid var(--border); border-radius: 8px; background: transparent; color: var(--text); padding: 8px; }
summary { cursor: pointer; font-weight: 600; }
.steps { padding-left: 20px; }
