*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 15px;
    color: #1b1b1b;
    background: #f2f2f2;
    min-height: 100vh;
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* ── Card ── */
.card {
    background: #fff;
    width: 100%;
    max-width: 440px;
    padding: 44px;
    box-shadow: 0 2px 6px rgba(0,0,0,.2);
}

/* ── Microsoft logo ── */
.ms-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}
.ms-squares {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    width: 21px;
    height: 21px;
    flex-shrink: 0;
}
.ms-squares span:nth-child(1) { background: #f25022; }
.ms-squares span:nth-child(2) { background: #7fba00; }
.ms-squares span:nth-child(3) { background: #00a4ef; }
.ms-squares span:nth-child(4) { background: #ffb900; }
.ms-name {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -.2px;
}

/* ── Headings ── */
h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
}
.subtitle {
    color: #1b1b1b;
    margin-bottom: 28px;
    font-size: 15px;
}

/* ── Who-am-I banner (password step) ── */
.who-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 8px 10px;
    border: 1px solid #d2d2d2;
    cursor: pointer;
    width: fit-content;
}
.who-banner:hover { background: #f5f5f5; }
.who-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: #0078d4;
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 600;
}
.who-email { font-size: 13px; color: #444; }

/* ── Form fields ── */
.field { margin-bottom: 20px; }
.field label {
    display: block;
    font-size: 13px;
    color: #1b1b1b;
    margin-bottom: 4px;
}
.field input {
    width: 100%;
    height: 36px;
    border: none;
    border-bottom: 1px solid #666;
    font-size: 15px;
    font-family: inherit;
    background: transparent;
    outline: none;
    padding: 4px 0;
}
.field input:focus { border-bottom: 2px solid #0078d4; }

/* ── Links ── */
.link-row { margin-bottom: 24px; }
.link-row a {
    color: #0067b8;
    text-decoration: none;
    font-size: 13px;
}
.link-row a:hover { text-decoration: underline; }

/* ── Button row ── */
.btn-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}
.btn-back {
    background: none;
    border: none;
    color: #0067b8;
    font-size: 15px;
    font-family: inherit;
    cursor: pointer;
    padding: 0;
}
.btn-back:hover { text-decoration: underline; }
.btn-next {
    background: #0067b8;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 15px;
    font-family: inherit;
    cursor: pointer;
    min-width: 108px;
}
.btn-next:hover { background: #005da6; }

/* ── Footer ── */
footer {
    margin-top: 20px;
    font-size: 12px;
    color: #767676;
    text-align: center;
}
footer a { color: #767676; text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer span { margin: 0 8px; }
