/* ── Page layout ───────────────────────────────────────────────────── */
        body {
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 100vh;
            padding: 24px;
        }

        /* ── Login card ────────────────────────────────────────────────────── */
        .login-card {
            position: relative;
            z-index: 10;
            width: 100%;
            max-width: 420px;
            padding: 48px 44px 40px;
        }

        /* Subtle top glow line */
        .login-card::before {
            content: '';
            position: absolute;
            top: 0; left: 10%; right: 10%;
            height: 1px;
            background: linear-gradient(90deg, transparent, var(--color-primary), var(--color-accent), transparent);
            border-radius: 100%;
        }

        /* ── Logo area ─────────────────────────────────────────────────────── */
        .logo-area {
            display: flex;
            align-items: center;
            gap: 14px;
            margin-bottom: 32px;
        }

        .logo-icon {
            width: 48px;
            height: 48px;
            background: linear-gradient(135deg, var(--color-logo-start) 0%, var(--color-logo-end) 100%);
            border-radius: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            box-shadow: 0 4px 20px var(--shadow-logo);
        }

        .logo-icon svg {
            width: 26px;
            height: 26px;
            color: #fff;
        }

        .logo-text h1 {
            font-size: 20px;
            font-weight: 700;
            color: var(--color-text);
            letter-spacing: -0.3px;
            line-height: 1.2;
        }
        .logo-text span {
            font-size: 12px;
            font-weight: 400;
            color: var(--color-text-muted);
            letter-spacing: 0.02em;
        }

        /* ── Heading ───────────────────────────────────────────────────────── */
        .login-heading {
            margin-bottom: 6px;
        }
        .login-heading h2 {
            font-size: 26px;
            font-weight: 700;
            color: var(--color-text);
            letter-spacing: -0.5px;
        }
        .login-subtitle {
            font-size: 14px;
            color: var(--color-text-muted);
            line-height: 1.6;
            margin-bottom: 28px;
        }

        /* ── Error alert ────────────────────────────────────────────────────── */
        .error-alert {
            display: none;
            margin-bottom: 24px;
        }
        .error-alert.visible { display: flex; }

        /* ── Microsoft button ──────────────────────────────────────────────── */
        .ms-btn {
            background: #ffffff;
            color: #1f1f1f;
            border: 1px solid #d4d4d4;
            border-radius: 4px;    /* MS brand uses square-ish corners */
            font-size: 15px;
            font-weight: 600;
            padding: 12px 20px;
            gap: 12px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.25);
            transition: all var(--transition-smooth);
        }
        .ms-btn:hover {
            background: #f5f5f5;
            box-shadow: 0 4px 16px rgba(0,0,0,0.35);
            transform: translateY(-2px);
        }
        .ms-btn:active { transform: translateY(0); }

        .ms-logo {
            width: 20px;
            height: 20px;
            flex-shrink: 0;
        }

        /* ── Divider text ────────────────────────────────────────────────────── */
        .info-section {
            margin-top: 32px;
        }

        /* ── Feature pills ──────────────────────────────────────────────────── */
        .feature-list {
            display: flex;
            flex-direction: column;
            gap: 10px;
            margin-top: 20px;
        }
        .feature-item {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 13px;
            color: var(--color-text-muted);
        }
        .feature-icon {
            width: 28px;
            height: 28px;
            border-radius: 8px;
            background: var(--color-accent-dim);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }
        .feature-icon svg {
            width: 14px;
            height: 14px;
            color: var(--color-accent);
        }

        /* ── Footer ─────────────────────────────────────────────────────────── */
        .login-footer {
            margin-top: 36px;
            padding-top: 20px;
            border-top: 1px solid var(--color-border);
            text-align: center;
        }
        .login-footer p {
            font-size: 12px;
            color: var(--color-text-faint);
            line-height: 1.6;
        }
        .login-footer a {
            color: var(--color-text-muted);
            text-decoration: none;
        }
        .login-footer a:hover { color: var(--color-accent); }

        /* ── Floating badge ─────────────────────────────────────────────────── */
        .secure-badge {
            position: fixed;
            bottom: 24px;
            right: 24px;
            z-index: 20;
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 8px 14px;
            background: rgba(80,227,194,0.1);
            border: 1px solid rgba(80,227,194,0.2);
            border-radius: 100px;
            font-size: 11.5px;
            font-weight: 500;
            color: var(--color-accent);
            backdrop-filter: blur(12px);
        }
        .secure-badge svg {
            width: 13px;
            height: 13px;
        }

        /* ── Responsive ─────────────────────────────────────────────────────── */
        @media (max-width: 480px) {
            .login-card { padding: 36px 28px 32px; }
            .login-heading h2 { font-size: 22px; }
        }

.theme-toggle-wrap {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 100;
}
.alert-icon {
    flex-shrink: 0;
    margin-top: 1px;
}
