:root {
    --mall-red: #e1001a;
    --mall-red-dark: #b80016;
    --ink: #202124;
    --muted: #686a70;
    --line: #e8e8ea;
    --surface: #ffffff;
    --soft-surface: #f7f7f8;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    margin: 0;
}

body {
    color: var(--ink);
    background: var(--soft-surface);
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.login-shell {
    display: grid;
    grid-template-columns: minmax(440px, 1.18fr) minmax(420px, 0.82fr);
    min-height: 100vh;
}

.brand-panel {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    color: #fff;
    background: #161616 url("../Content/images/Mall_Background.jpg") center / cover no-repeat;
}

.brand-panel::after {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 52%;
    height: 5px;
    content: "";
    background: linear-gradient(90deg, var(--mall-red), #ff7a00, #ffc400);
}

.brand-panel__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(110deg, rgba(0, 0, 0, 0.84) 0%, rgba(0, 0, 0, 0.54) 48%, rgba(0, 0, 0, 0.22) 100%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.48), transparent 50%);
}

.brand-panel__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100%;
    padding: clamp(34px, 5vw, 74px);
}

.brand-logo {
    width: 152px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.22));
}

.brand-message {
    max-width: 640px;
    margin: auto 0;
    padding: 80px 0;
}

.brand-eyebrow,
.access-kicker {
    display: block;
    margin-bottom: 18px;
    color: var(--mall-red);
    font-size: 0.75rem;
    font-weight: 750;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.brand-eyebrow {
    color: #fff;
}

.brand-eyebrow::before {
    display: inline-block;
    width: 38px;
    height: 3px;
    margin: 0 12px 3px 0;
    content: "";
    background: var(--mall-red);
}

.brand-message h1 {
    max-width: 620px;
    margin: 0;
    font-size: clamp(2.45rem, 4.6vw, 4.8rem);
    font-weight: 720;
    letter-spacing: -0.045em;
    line-height: 0.98;
}

.brand-message p {
    max-width: 510px;
    margin: 28px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1rem;
    line-height: 1.65;
}

.brand-location {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.access-panel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 64px clamp(32px, 5vw, 84px) 92px;
    background: var(--surface);
}

.access-card {
    position: relative;
    width: min(100%, 460px);
}

.access-card__mark {
    width: 54px;
    height: 6px;
    margin-bottom: 34px;
    border-radius: 999px;
    background: var(--mall-red);
}

.access-heading h2 {
    margin: 0;
    font-size: clamp(2rem, 3vw, 2.7rem);
    font-weight: 720;
    letter-spacing: -0.04em;
}

.access-heading p {
    max-width: 390px;
    margin: 14px 0 30px;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.55;
}

.login-alert {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 13px 15px;
    border: 1px solid rgba(225, 0, 26, 0.18);
    border-radius: 9px;
    color: #a30013;
    background: #fff4f5;
    font-size: 0.86rem;
    line-height: 1.45;
}

.login-alert svg {
    flex: 0 0 19px;
    width: 19px;
    fill: var(--mall-red);
}

.microsoft-button {
    display: flex;
    gap: 15px;
    align-items: center;
    width: 100%;
    min-height: 58px;
    padding: 0 18px;
    border: 1px solid #1b1b1b;
    border-radius: 8px;
    color: #fff;
    background: #202020;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    font-size: 0.96rem;
    font-weight: 650;
    text-decoration: none;
    transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.microsoft-button:hover {
    color: #fff;
    background: #090909;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.18);
    transform: translateY(-2px);
}

.microsoft-button:focus-visible {
    outline: 3px solid rgba(225, 0, 26, 0.3);
    outline-offset: 4px;
}

.microsoft-symbol {
    display: grid;
    flex: 0 0 21px;
    grid-template-columns: repeat(2, 10px);
    grid-template-rows: repeat(2, 10px);
    gap: 1px;
    width: 21px;
    height: 21px;
}

.microsoft-symbol i {
    display: block;
}

.microsoft-symbol__red { background: #f35325; }
.microsoft-symbol__green { background: #81bc06; }
.microsoft-symbol__blue { background: #05a6f0; }
.microsoft-symbol__yellow { background: #ffba08; }

.button-arrow {
    width: 20px;
    margin-left: auto;
    fill: currentColor;
    opacity: 0.72;
}

.security-note {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    margin-top: 18px;
    color: #77797e;
    font-size: 0.79rem;
}

.security-note svg {
    width: 15px;
    fill: #77797e;
}

.access-divider {
    height: 1px;
    margin: 34px 0 23px;
    background: var(--line);
}

.support-copy {
    margin: 0;
    color: #888a8f;
    font-size: 0.79rem;
    line-height: 1.55;
    text-align: center;
}

.access-footer {
    position: absolute;
    right: 0;
    bottom: 28px;
    left: 0;
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    color: #9a9ca0;
    font-size: 0.72rem;
}

.access-footer__dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--mall-red);
}

@media (max-width: 900px) {
    .login-shell {
        grid-template-columns: 1fr;
    }

    .brand-panel {
        min-height: 330px;
    }

    .brand-panel__content {
        min-height: 330px;
        padding: 28px 32px 34px;
    }

    .brand-logo {
        width: 105px;
    }

    .brand-message {
        padding: 35px 0 20px;
    }

    .brand-message h1 {
        font-size: clamp(2.1rem, 8vw, 3.3rem);
    }

    .brand-message p {
        display: none;
    }

    .access-panel {
        min-height: auto;
        padding: 58px 28px 88px;
    }
}

@media (max-width: 480px) {
    .brand-panel {
        min-height: 290px;
    }

    .brand-panel__content {
        min-height: 290px;
        padding: 22px 22px 28px;
    }

    .brand-message {
        padding-top: 32px;
    }

    .brand-eyebrow {
        margin-bottom: 12px;
        font-size: 0.66rem;
    }

    .brand-location {
        font-size: 0.65rem;
    }

    .access-panel {
        padding-right: 22px;
        padding-left: 22px;
    }

    .microsoft-button {
        font-size: 0.88rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .microsoft-button {
        transition: none;
    }
}
