body.sign-in-required {
    background: radial-gradient(ellipse at 76% 13%, #faebee, transparent 47%),
        linear-gradient(160deg, #faf8f9, #f8f1f3);
}

.sign-in-required .skip-link { display: none; }

.login-screen {
    display: grid;
    grid-template-rows: auto 1fr auto;
    width: min(1230px, calc(100% - 64px));
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0 auto;
    padding: 37px 0 25px;
}

.login-header, .login-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.login-logo { display: block; width: 251px; max-width: 70%; height: auto; }

.login-portal {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    border: 1px solid #f1d6df;
    border-radius: 999px;
    padding: 8px 13px;
    background: white;
    color: #896270;
    font-size: 12px;
    font-weight: 720;
    text-transform: uppercase;
}

.login-portal .ic { color: var(--brand-deep); }

.login-main {
    display: grid;
    align-items: center;
    padding: 28px 0 34px;
}

.login-card {
    display: grid;
    grid-template-columns: 51% 49%;
    min-height: 573px;
    overflow: hidden;
    border: 1px solid #f0e0e4;
    border-radius: 24px;
    background: #fefefe;
    box-shadow: 0 22px 60px #56283616, 0 2px 5px #56283608;
}

.login-form-panel {
    display: flex;
    align-items: center;
    padding: 54px clamp(32px, 5.2vw, 75px) 40px;
}

.login-content { width: 100%; max-width: 420px; }

.login-eyebrow {
    margin: 0 0 14px;
    color: #c20f36;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .17em;
    text-transform: uppercase;
}

.login-content h1 {
    margin: 0;
    color: #242a35;
    font-size: clamp(38px, 3.54vw, 51px);
    font-weight: 770;
    line-height: 1.12;
    letter-spacing: -.046em;
}

.login-content h1:focus { outline: none; }

.login-description {
    margin: 22px 0 37px;
    color: #687785;
    font-size: 18px;
    line-height: 1.6;
}

.login-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: fit-content;
    max-width: 100%;
    margin: 0 0 21px;
    padding: 13px 16px;
    border: 1px solid #f2dfb9;
    border-radius: 12px;
    background: #fdf8ee;
    color: #775d30;
    font-size: 14px;
    line-height: 1.48;
}

.login-notice .ic { margin-top: 3px; color: #a56e16; }

.login-microsoft {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 53px;
    padding: 11px 18px;
    border-radius: 13px;
    background: #bf1539;
    color: white;
    box-shadow: 0 6px 12px #ac103133;
    font-size: 16px;
    font-weight: 730;
}

.login-microsoft:hover { background: #a40f30; color: white; }
.login-microsoft .ic { margin-left: auto; }

.login-microsoft-mark {
    display: grid;
    grid-template-columns: repeat(2, 8px);
    grid-template-rows: repeat(2, 8px);
    gap: 2px;
    flex: none;
}
.login-microsoft-mark span { background: white; }

.login-guidance {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 17px 0 0;
    color: #777e8e;
    font-size: 13px;
    line-height: 1.6;
}

.login-guidance .ic { margin-top: 3px; }

.login-preview {
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 34px 36px;
    background: radial-gradient(circle at 100% -12px, transparent 236px, #ffffff23 237px, transparent 238px),
        radial-gradient(ellipse at 30% 12%, #ef6d894d, transparent 47%),
        linear-gradient(140deg, #f9214b, #a31234 88%);
    color: white;
}

.login-preview::before, .login-preview::after {
    position: absolute;
    z-index: -1;
    border: 1px solid #ffffff23;
    border-radius: 50%;
    content: "";
    pointer-events: none;
}
.login-preview::before {
    width: 605px;
    height: 605px;
    top: -315px;
    right: -263px;
}
.login-preview::after { width: 370px; height: 370px; bottom: -230px; left: -240px; }

.login-preview-content { width: min(100%, 370px); }
.login-preview .login-eyebrow { margin-bottom: 11px; color: #ffd1db; }
.login-preview h2 {
    margin: 0 0 25px;
    color: white;
    font-size: 27px;
    font-weight: 760;
    line-height: 1.25;
    letter-spacing: -.035em;
}

.login-example {
    padding: 24px 26px;
    transform: rotate(-1.4deg);
    border-radius: 19px;
    background: #fefefe;
    color: var(--ink);
    box-shadow: 0 16px 40px #60021c3b;
}

.login-example-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 17px;
    border-bottom: 1px solid #e8eef0;
}

.login-example-title strong { display: block; font-size: 17px; letter-spacing: -.025em; }
.login-example-title div > span {
    display: block;
    margin-top: 1px;
    color: #81929a;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}
.login-example-icon {
    display: grid;
    place-items: center;
    width: 43px;
    height: 43px;
    border-radius: 13px;
    background: var(--brand-soft);
    color: #d20c39;
}

.login-example-timeline {
    position: relative;
    display: grid;
    gap: 21px;
    margin: 23px 0;
    padding: 0;
    list-style: none;
}
.login-example-timeline::before {
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 8px;
    width: 2px;
    background: #f6c4d0;
    content: "";
}
.login-example-timeline li {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding-left: 31px;
    color: #2b4b5c;
    font-size: 13px;
}
.login-example-timeline li::before {
    position: absolute;
    left: 0;
    width: 18px;
    height: 18px;
    border: 4px solid #fc2250;
    border-radius: 50%;
    background: white;
    content: "";
}
.login-example-timeline li:nth-child(2)::before { border-color: #a9bec5; }
.login-example-timeline li:nth-child(3)::before { border-color: #f184a0; }
.login-example-timeline time { color: #81949e; font-size: 12px; font-weight: 700; }

.login-example-note {
    margin: 0;
    padding: 11px 7px;
    border-radius: 9px;
    background: var(--brand-soft);
    color: #b4082e;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.login-example-caption { margin: 18px 0 0; color: #ffd1db; font-size: 12px; text-align: center; }

.login-footer { color: #817782; font-size: 12px; }
.login-secure { display: flex; align-items: center; gap: 6px; }
.login-secure .ic { width: 13px; height: 13px; }

@media (max-width: 820px) {
    body.sign-in-required {
        background: radial-gradient(ellipse at 90% 13%, #fae9ee, transparent 60%),
            linear-gradient(160deg, #fcf5f7, #f8f1f3);
    }
    .login-screen { width: min(500px, calc(100% - 28px)); padding: 25px 0 17px; }
    .login-header { align-items: flex-start; min-height: 63px; }
    .login-logo { width: 198px; }
    .login-portal { width: 34px; height: 34px; justify-content: center; margin-top: 4px; padding: 0; }
    .login-portal span, .login-preview, .login-secure { display: none; }
    .login-main { padding: 24px 0; }
    .login-card { grid-template-columns: minmax(0, 1fr); min-height: 550px; border-radius: 18px; }
    .login-form-panel { padding: 40px 23px; }
    .login-content { margin-inline: auto; }
    .login-content h1 { font-size: clamp(32px, 9.6vw, 40px); }
    .login-description { margin: 21px 0 28px; font-size: 16px; line-height: 1.58; letter-spacing: -.21px; }
    .login-notice { width: 100%; padding: 13px 15px; margin-bottom: 22px; }
    .login-microsoft { padding-inline: 15px; }
    .login-guidance { margin-top: 17px; }
    .login-footer { font-size: 11px; }
}

@media (max-width: 380px) {
    .login-form-panel { padding-inline: 19px; }
}
