html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
}

body {
    background: linear-gradient(150deg, #0f172a 0%, #1e293b 20%, #00b9ff 130%);
}

.wrapper {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    min-height: 100%;
    padding: 30px;
    position: relative;
}

#formContent {
    background: var(--jas-login-card-bg, rgba(255,255,255,0.96));
    backdrop-filter: blur(16px);
    border-radius: 16px;
    padding: 30px;
    width: 100%;
    max-width: 600px;
    position: relative;
    padding: 50px 60px;
    -webkit-box-shadow: 0 0 75px 0 rgba(0,0,0,0.9);
    box-shadow: 0 25px 80px rgba(0,0,0,.45), 0 1px 1px rgba(255,255,255,.2) inset;
    text-align: center;
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--jas-text, #111827);
    margin-top: 16px;
    margin-bottom: 8px;
}

.login-subtitle {
    color: var(--jas-text-muted, #6b7280);
    font-size: 15px;
}

#jasLogo {
    max-width: 280px;
    width: 100%;
}

.lightText {
    color: var(--jas-text-muted, #6b7280);
}

.input-group-text {
    border-radius: 12px 0 0 12px !important;
}

#emailSection {
    margin-top: 20px;
}

#EmailAddress {
    border: 1px solid var(--jas-border, #d1d5db);
    height: 45px;
    font-size: 15px;
    box-shadow: none;
}

    #EmailAddress:focus {
        border-color: var(--jas-accent, #0dcaf0);
        box-shadow: 0 0 0 4px rgba(13,202,240,.15);
    }

#submitBtn {
    height: 45px;
    border-radius: 0 12px 12px 0;
    border: none;
    background: var(--jas-accent, #0dcaf0);
    color: white;
    font-weight: 600;
    padding: 0 12px;
    transition: .2s ease;
}

    #submitBtn:hover {
        background: var(--jas-accent, #0bb6d8);
    }

.microsoft-btn {
    display: block;
    width: 100%;
    margin-bottom: 8px;
    border-color: #fff;
    transition: transform .15s ease;
}

    .microsoft-btn > img:hover, #passkeyLoginBtn:hover {
        transform: scale(1.02);
    }

    .microsoft-btn img {
        width: 100%;
        max-width: 220px;
    }

#passkeyLoginBtn {
    font-size: 1rem;
    font-weight:500;
    background-color: var(--jas-bg, #fff);
    border: 1px solid var(--jas-border, #d5d5d5);
    border-radius: inherit;
    max-width: 220px;
    transition: transform .15s ease;
}

.divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: var(--jas-text-muted, #9ca3af);
    font-size: 14px;
}

    .divider:before,
    .divider:after {
        content: "";
        flex: 1;
        height: 1px;
        background: var(--jas-border, #e5e7eb);
    }

    .divider span {
        padding: 0 12px;
    }

#msg {
    margin-top: 30px;
    font-size: 13px;
    line-height: 1.5;
}

.wrapper {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
}

    .wrapper::before {
        content: "";
        position: absolute;
        width: 500px;
        height: 500px;
        background: rgba(13,202,240,.12);
        filter: blur(100px);
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        z-index: -1;
    }

/* The login card is a translucent glass panel over this page's own dark gradient background (not the
main app chrome), so it needs its own dark value rather than reusing --jas-bg (opaque white by default -
wrong shape for a translucent overlay). There's no toggle control reachable from this page (CurrentUser
is null pre-login, so _Layout.cshtml's account dropdown never renders here), but the preference is a
device-level localStorage value (see JasStorage.Keys.DarkMode), so it can still be set from a prior
session and should be honored consistently. */
[data-bs-theme="dark"] #formContent {
    --jas-login-card-bg: rgba(26, 29, 33, 0.92);
}
