:root {
    --background: #BDC6D9;
    --subbackground: #E3E7F1;
    --color1: #52688F;
    --color2: #7391C8;
    --border: #7391C8;
    --font: #475979;
    --header-font: rgb(71, 89, 122);
    --box-shadow-color: rgba(0, 0, 0, 0.1);
    --brooks-green: #50b948;
    --scrollbar-track: rgba(115, 145, 200, 0.12);
    --scrollbar-thumb: rgba(82, 104, 143, 0.75);
    --scrollbar-thumb-start: rgba(82, 104, 143, 0.92);
    --scrollbar-thumb-end: rgba(115, 145, 200, 0.95);

    font-family: "League Spartan", sans-serif;
}

html,
body,
* {
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track,
*::-webkit-scrollbar-track {
    border-radius: 999px;
    background: var(--scrollbar-track);
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb,
*::-webkit-scrollbar-thumb {
    border: 2px solid transparent;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--scrollbar-thumb-start), var(--scrollbar-thumb-end));
    background-clip: padding-box;
}

html::-webkit-scrollbar-corner,
body::-webkit-scrollbar-corner,
*::-webkit-scrollbar-corner {
    background: transparent;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(115, 145, 200, 0.42), transparent 36%),
        radial-gradient(circle at bottom right, rgba(82, 104, 143, 0.28), transparent 34%),
        linear-gradient(160deg, #d5dbe8 0%, var(--background) 52%, #aab7d0 100%);
    color: var(--font);
    font-family: "League Spartan", sans-serif;
}

.login-page {
    position: relative;
    min-height: 100vh;
    padding: 36px 24px;
    overflow: hidden;
}

.login-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(6px);
    pointer-events: none;
}

.login-orb-left {
    top: -120px;
    left: -80px;
    width: 320px;
    height: 320px;
    background: rgba(115, 145, 200, 0.22);
}

.login-orb-right {
    right: -60px;
    bottom: -90px;
    width: 360px;
    height: 360px;
    background: rgba(80, 185, 72, 0.14);
}

.login-shell {
    position: relative;
    z-index: 1;
    width: min(1180px, 100%);
    min-height: calc(100vh - 72px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
    gap: 28px;
    align-items: stretch;
}

.login-brand-panel,
.login-auth-card {
    border: 1px solid rgba(115, 145, 200, 0.55);
    border-radius: 28px;
    box-shadow: 0 24px 44px var(--box-shadow-color);
}

.login-brand-panel {
    padding: 44px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background:
        linear-gradient(165deg, rgba(227, 231, 241, 0.96) 0%, rgba(189, 198, 217, 0.98) 100%);
    position: relative;
    overflow: hidden;
}

.login-brand-panel::after {
    content: "";
    position: absolute;
    inset: auto -70px -100px auto;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(115, 145, 200, 0.24) 0%, rgba(115, 145, 200, 0) 72%);
}

.login-eyebrow {
    margin: 0 0 14px;
    color: var(--color1);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.login-brand-panel h1 {
    margin: 0;
    max-width: 9ch;
    color: var(--header-font);
    font-size: clamp(2.9rem, 5vw, 5rem);
    line-height: 0.96;
    letter-spacing: -0.04em;
}

.login-intro {
    margin: 18px 0 0;
    max-width: 560px;
    color: var(--font);
    font-size: 1.18rem;
    line-height: 1.55;
}

.login-feature-list {
    margin-top: 42px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.login-feature-card {
    position: relative;
    padding: 20px 18px 18px;
    border: 1px solid rgba(115, 145, 200, 0.45);
    border-radius: 22px;
    background: rgba(227, 231, 241, 0.78);
    backdrop-filter: blur(10px);
}

.login-feature-card strong {
    display: block;
    margin-top: 10px;
    color: var(--header-font);
    font-size: 1.08rem;
    line-height: 1.2;
}

.login-feature-card p {
    margin: 10px 0 0;
    color: var(--font);
    font-size: 0.98rem;
    line-height: 1.45;
}

.login-feature-kicker {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(82, 104, 143, 0.12);
    color: var(--color1);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.login-auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-auth-card {
    width: min(460px, 100%);
    padding: 38px 34px 34px;
    background: rgba(227, 231, 241, 0.95);
    backdrop-filter: blur(14px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-logo {
    width: min(260px, 100%);
    height: auto;
    margin-bottom: 34px;
}

.login-copy {
    margin-bottom: 28px;
    text-align: center;
}

.login-auth-label {
    margin: 0 0 12px;
    color: var(--color1);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.login-copy h2 {
    margin: 0;
    color: var(--header-font);
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1;
}

.login-copy p {
    margin: 14px 0 0;
    color: var(--font);
    font-size: 1.02rem;
    line-height: 1.55;
}

.microsoft-signin {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 17px 22px;
    border: none;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--color1), var(--color2));
    color: #fff;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 700;
    box-shadow: 0 16px 28px rgba(82, 104, 143, 0.24);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.microsoft-signin:hover,
.microsoft-signin:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 20px 34px rgba(82, 104, 143, 0.28);
    filter: saturate(1.05);
    outline: none;
}

.microsoft-mark {
    width: 22px;
    height: 22px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3px;
    flex-shrink: 0;
}

.microsoft-mark span:nth-child(1) {
    background: #f25022;
}

.microsoft-mark span:nth-child(2) {
    background: #7fba00;
}

.microsoft-mark span:nth-child(3) {
    background: #00a4ef;
}

.microsoft-mark span:nth-child(4) {
    background: #ffb900;
}

.login-auth-note {
    margin-top: 18px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
}

.login-note-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--brooks-green);
    box-shadow: 0 0 0 6px rgba(80, 185, 72, 0.15);
}

@media (max-width: 980px) {
    .login-shell {
        grid-template-columns: 1fr;
    }

    .login-brand-panel h1 {
        max-width: 12ch;
    }

    .login-feature-list {
        grid-template-columns: 1fr;
    }

    .login-auth-panel {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .login-page {
        padding: 20px 14px;
    }

    .login-shell {
        min-height: auto;
        gap: 18px;
    }

    .login-brand-panel,
    .login-auth-card {
        padding: 28px 22px;
        border-radius: 24px;
    }

    .login-brand-panel h1 {
        font-size: 2.5rem;
    }

    .login-intro {
        font-size: 1.02rem;
    }

    .microsoft-signin {
        padding: 15px 18px;
        font-size: 1rem;
    }
}
