:root {
    --msd-blue: #0a4da3;
    --msd-blue-deep: #083a7b;
    --msd-red: #d63232;
    --msd-yellow: #f5c542;
    --msd-white: #ffffff;
    --msd-ink: #16304e;
    --msd-muted: #6b7b90;
    --msd-bg: #eef4fb;
    --msd-line: rgba(10, 77, 163, 0.12);
    --msd-shadow: 0 24px 60px rgba(9, 42, 89, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Barlow", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(245, 197, 66, 0.35), transparent 28%),
        linear-gradient(145deg, #f7fbff 0%, #eef4fb 48%, #fff7dc 100%);
    background-attachment: fixed;
    color: var(--msd-ink);
}

.portal-shell {
    min-height: 100vh;
    gap: 0.75rem;
}

.sidebar-panel {
    width: 100%;
    max-width: 280px;
    flex: 0 0 280px;
    min-height: calc(100dvh - 1.5rem);
    background: linear-gradient(180deg, var(--msd-blue) 0%, var(--msd-blue-deep) 100%);
    color: var(--msd-white);
    display: flex;
    flex-direction: column;
    box-shadow: var(--msd-shadow);
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    height: calc(100dvh - 1.5rem);
    padding: 1rem !important;
    border-radius: 24px;
    z-index: 1000;
    overflow-x: hidden;
    overflow-y: hidden;
}

.sidebar-panel::after {
    content: "";
    position: absolute;
    inset: auto -60px -80px auto;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(245, 197, 66, 0.16);
    pointer-events: none;
}

.brand-block {
    min-width: 0;
}

.brand-copy {
    min-width: 0;
}

.brand-logo {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0.4rem;
    background: rgba(255, 255, 255, 0.92);
    overflow: hidden;
    box-shadow: 0 14px 30px rgba(8, 58, 123, 0.18);
}

.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-block-sidebar {
    gap: 1rem !important;
}

.brand-block-sidebar .brand-logo {
    width: 92px;
    height: 92px;
    border-radius: 24px;
    padding: 0.5rem;
}

.brand-block-sidebar .brand-title {
    font-size: 1.35rem;
    line-height: 1.1;
}

.brand-block-login {
    gap: 1.25rem !important;
    align-items: center;
}

.brand-block-login .brand-logo {
    width: 124px;
    height: 124px;
    border-radius: 30px;
    padding: 0.7rem;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 22px 46px rgba(6, 32, 71, 0.24);
}

.brand-block-login .brand-title {
    font-size: clamp(1.55rem, 2.4vw, 2rem);
    line-height: 1.05;
}

.eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--msd-muted);
    font-weight: 700;
}

.sidebar-panel .eyebrow {
    color: rgba(255, 255, 255, 0.72);
}

.brand-title {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.sidebar-header {
    margin-bottom: 1.25rem !important;
    align-items: flex-start !important;
}

.sidebar-toggle {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: var(--msd-white);
    background: rgba(255, 255, 255, 0.08);
}

.sidebar-toggle:hover,
.sidebar-toggle:focus {
    color: var(--msd-white);
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.34);
}

.sidebar-nav-wrap {
    min-height: 0;
    gap: 1rem;
    position: relative;
    z-index: 1;
    overflow-y: auto;
    padding-right: 0.2rem;
}

.sidebar-nav {
    gap: 0.35rem !important;
}

.sidebar-nav-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.72rem 0.9rem;
    border-radius: 16px;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 600;
    transition: all 0.2s ease;
}

.sidebar-nav .nav-link i {
    font-size: 1rem;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
    color: var(--msd-white);
    background: rgba(255, 255, 255, 0.14);
}

.sidebar-subnav {
    margin-left: 1.25rem;
    padding-left: 0.9rem;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
    gap: 0.3rem;
}

.sidebar-subnav-link {
    padding: 0.58rem 0.8rem !important;
    font-size: 0.93rem;
    color: rgba(255, 255, 255, 0.74) !important;
}

.sidebar-subnav-link:hover,
.sidebar-subnav-link.active {
    color: var(--msd-white) !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

.sidebar-cta {
    position: relative;
    z-index: 1;
    padding: 0.85rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.language-switcher {
    position: relative;
    z-index: 1;
    padding: 0.85rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.language-switcher-actions {
    display: flex;
    gap: 0.5rem;
}

.language-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.2s ease;
}

.language-chip:hover,
.language-chip.active {
    color: var(--msd-blue-deep);
    background: linear-gradient(135deg, var(--msd-yellow), #fff1bf);
    border-color: transparent;
}

.login-language-switcher {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.login-language-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--msd-muted);
    background: rgba(10, 77, 163, 0.06);
    border: 1px solid rgba(10, 77, 163, 0.1);
    transition: all 0.2s ease;
}

.login-language-chip:hover,
.login-language-chip.active {
    color: var(--msd-blue-deep);
    background: linear-gradient(135deg, var(--msd-yellow), #fff1bf);
    border-color: transparent;
}

.content-panel {
    flex: 1;
    min-width: 0;
    margin-left: calc(280px + 1.5rem);
}

.content-panel-match-sidebar {
    padding: 0.75rem !important;
}

.content-topbar {
    padding: 1.15rem 1.25rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 18px 32px rgba(15, 54, 105, 0.06);
}

.page-title {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 700;
    color: var(--msd-blue-deep);
}

.page-subtitle {
    color: var(--msd-muted);
    max-width: 48rem;
}

.toolbar-btn {
    border-radius: 999px;
    padding-inline: 1rem;
    font-weight: 600;
}

.user-badge {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.55rem 0.85rem;
    border-radius: 18px;
    background: rgba(10, 77, 163, 0.08);
    border: 1px solid rgba(10, 77, 163, 0.1);
}

.user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--msd-blue), var(--msd-red));
    color: var(--msd-white);
    font-weight: 700;
    letter-spacing: 0.05em;
}

.user-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.user-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--msd-muted);
    font-weight: 700;
}

.user-meta strong {
    font-size: 0.95rem;
    color: var(--msd-blue-deep);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 16rem;
}

.user-meta small {
    color: var(--msd-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 16rem;
}

.portal-alert {
    border: 0;
    border-radius: 16px;
    padding: 0.8rem 0.9rem;
    box-shadow: 0 16px 30px rgba(15, 54, 105, 0.08);
}

.delegate-reminder-shell {
    margin-left: calc(280px + 1.5rem);
    padding: 1rem 1rem 0;
}

.delegate-reminder-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    max-width: 1480px;
    margin: 0 auto;
    padding: 1rem 1.15rem;
    border-radius: 22px;
    border: 1px solid rgba(214, 50, 50, 0.18);
    background:
        radial-gradient(circle at top right, rgba(255, 206, 206, 0.92), transparent 34%),
        linear-gradient(135deg, rgba(255, 249, 249, 0.98), rgba(255, 238, 238, 0.96));
    box-shadow: 0 18px 40px rgba(214, 50, 50, 0.12);
}

.delegate-reminder-copy {
    min-width: 0;
}

.delegate-reminder-eyebrow {
    display: inline-block;
    margin-bottom: 0.35rem;
    color: var(--msd-red);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.delegate-reminder-title {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--msd-blue-deep);
}

.delegate-reminder-body {
    color: var(--msd-muted);
    line-height: 1.65;
    white-space: pre-line;
}

.delegate-reminder-dismiss-form {
    flex-shrink: 0;
}

.delegate-reminder-dismiss-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 0;
    border-radius: 999px;
    padding: 0.65rem 0.95rem;
    background: rgba(214, 50, 50, 0.1);
    color: var(--msd-red);
    font-weight: 700;
}

.delegate-reminder-dismiss-btn:hover {
    background: rgba(214, 50, 50, 0.16);
}

.demo-accounts {
    padding: 0.85rem;
    border-radius: 18px;
    background: rgba(10, 77, 163, 0.05);
    border: 1px solid rgba(10, 77, 163, 0.08);
}

.demo-title {
    color: var(--msd-blue-deep);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.demo-list li {
    color: var(--msd-muted);
    font-size: 0.88rem;
    margin-bottom: 0.3rem;
}

.demo-list li:last-child {
    margin-bottom: 0;
}

.hero-banner {
    background: linear-gradient(135deg, rgba(10, 77, 163, 0.96), rgba(214, 50, 50, 0.92));
    color: var(--msd-white);
    border-radius: 30px;
    padding: 2rem;
    box-shadow: var(--msd-shadow);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.hero-title {
    font-size: clamp(1.7rem, 2.5vw, 2.5rem);
    line-height: 1.05;
    font-weight: 700;
}

.hero-copy {
    max-width: 42rem;
    color: rgba(255, 255, 255, 0.84);
}

.mini-stat {
    height: 100%;
    padding: 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
    color: var(--msd-white);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.mini-stat strong {
    display: block;
    font-size: 1.7rem;
    line-height: 1;
}

.mini-stat.bg-white,
.mini-stat.accent-yellow,
.mini-stat.accent-blue,
.mini-stat.accent-red {
    color: var(--msd-blue-deep);
    background: var(--msd-white);
    border-color: transparent;
}

.mini-stat.accent-yellow {
    background: linear-gradient(135deg, #ffe7a0, #fff7dc);
}

.mini-stat.accent-blue {
    background: linear-gradient(135deg, #cfe2ff, #eef4fb);
}

.mini-stat.accent-red {
    background: linear-gradient(135deg, #ffd2d2, #fff1f1);
}

.mini-label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.metric-card,
.dashboard-card {
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 24px;
    padding: 1.3rem;
    box-shadow: 0 20px 40px rgba(15, 54, 105, 0.08);
}

.affiliate-profile-card {
    height: auto;
    min-height: 0;
    display: block;
    padding: 0.8rem 1rem;
    border-radius: 20px;
}

.affiliate-profile-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem 1rem;
    align-items: center;
    min-height: 0;
}

.affiliate-profile-summary {
    min-width: 0;
}

.affiliate-profile-card .eyebrow {
    margin-bottom: 0.2rem;
}

.affiliate-profile-card .section-title {
    margin-bottom: 0.15rem !important;
    font-size: 1.05rem;
    line-height: 1.2;
}

.affiliate-profile-card .page-subtitle {
    max-width: none;
    font-size: 0.88rem;
    line-height: 1.3;
}

.affiliate-profile-card .status-pill {
    justify-self: end;
    align-self: center;
    white-space: nowrap;
}

@media (max-width: 767.98px) {
    .affiliate-profile-head {
        grid-template-columns: 1fr;
    }

    .affiliate-profile-card .status-pill {
        justify-self: start;
    }
}

.metric-card {
    position: relative;
    overflow: hidden;
}

.metric-card::after {
    content: "";
    position: absolute;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    top: -42px;
    right: -32px;
    opacity: 0.22;
}

.metric-blue::after,
.metric-blue .metric-icon {
    background: rgba(10, 77, 163, 0.14);
    color: var(--msd-blue);
}

.metric-red::after,
.metric-red .metric-icon {
    background: rgba(214, 50, 50, 0.12);
    color: var(--msd-red);
}

.metric-yellow::after,
.metric-yellow .metric-icon {
    background: rgba(245, 197, 66, 0.24);
    color: #8d6400;
}

.metric-white::after,
.metric-white .metric-icon {
    background: rgba(22, 48, 78, 0.08);
    color: var(--msd-ink);
}

.metric-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.metric-label,
.metric-note,
.portal-table th,
.portal-table td,
.event-item p,
.announcement-list li {
    color: var(--msd-muted);
}

.metric-label {
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.metric-value {
    margin-bottom: 0.15rem;
    font-size: 2rem;
    font-weight: 700;
    color: var(--msd-blue-deep);
}

.section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--msd-blue-deep);
}

.portal-table thead th {
    border-bottom: 1px solid var(--msd-line);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.portal-table tbody td {
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(10, 77, 163, 0.08);
    font-weight: 500;
}

.member-input {
    border-radius: 16px;
    border: 1px solid rgba(10, 77, 163, 0.14);
    padding: 0.85rem 1rem;
    box-shadow: none;
}

.member-input:focus {
    border-color: rgba(10, 77, 163, 0.38);
    box-shadow: 0 0 0 4px rgba(10, 77, 163, 0.08);
}

.member-count-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: rgba(10, 77, 163, 0.08);
    color: var(--msd-blue-deep);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.member-name {
    color: var(--msd-blue-deep);
    font-weight: 700;
}

.member-meta {
    margin-top: 0.2rem;
    color: var(--msd-muted);
    font-size: 0.88rem;
}

.member-actions form {
    margin: 0;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.42rem 0.7rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.status-blue {
    color: var(--msd-blue);
    background: rgba(10, 77, 163, 0.12);
}

.status-yellow {
    color: #936700;
    background: rgba(245, 197, 66, 0.28);
}

.status-red {
    color: var(--msd-red);
    background: rgba(214, 50, 50, 0.12);
}

.event-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--msd-line);
}

.event-date {
    min-width: 68px;
    padding: 0.7rem 0.5rem;
    border-radius: 16px;
    text-align: center;
    background: linear-gradient(135deg, #dce9ff, #fff);
    color: var(--msd-blue-deep);
    font-weight: 700;
}

.event-item h4 {
    margin-bottom: 0.25rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--msd-blue-deep);
}

.alert-card {
    background: linear-gradient(180deg, #fffef8, #ffffff);
}

.announcement-list li {
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: 0.9rem;
    font-weight: 500;
}

.announcement-list li strong,
.announcement-list li span {
    display: block;
}

.announcement-list li strong {
    color: var(--msd-blue-deep);
    margin-bottom: 0.2rem;
}

.announcement-list li span {
    color: var(--msd-muted);
}

.announcement-list li:last-child {
    margin-bottom: 0;
}

.announcement-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.48rem;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--msd-red);
}

.announcement-board {
    display: grid;
    gap: 1rem;
}

.announcement-card {
    border: 1px solid rgba(10, 77, 163, 0.1);
    border-radius: 24px;
    padding: 1.25rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.96));
}

.announcement-card.priority {
    border-color: rgba(214, 50, 50, 0.18);
    box-shadow: 0 18px 45px rgba(10, 77, 163, 0.08);
}

.announcement-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.announcement-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--msd-blue-deep);
}

.announcement-body {
    margin: 0;
    color: var(--msd-muted);
    line-height: 1.7;
    white-space: pre-line;
}

.announcement-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    margin-top: 1rem;
    color: var(--msd-muted);
    font-size: 0.88rem;
}

.announcement-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
}

@media (max-width: 991.98px) {
    .portal-shell {
        gap: 0;
    }

    .login-page {
        overflow: auto;
    }

    .sidebar-panel {
        max-width: none;
        width: 100%;
        min-height: auto;
        position: relative;
        top: auto;
        left: auto;
        height: auto;
        padding: 1rem !important;
        z-index: auto;
        overflow-y: visible;
        border-radius: 0 0 24px 24px;
    }

    .content-panel {
        margin-left: 0;
    }

    .content-panel-match-sidebar {
        padding: 0.75rem !important;
    }

    .login-showcase {
        min-height: auto;
    }

    .sidebar-nav-wrap {
        margin-top: 0.5rem;
    }

    .brand-block-sidebar .brand-logo {
        width: 78px;
        height: 78px;
        border-radius: 20px;
    }

    .brand-block-login .brand-logo {
        width: 104px;
        height: 104px;
        border-radius: 24px;
    }

    .delegate-reminder-card {
        flex-direction: column;
    }

    .delegate-reminder-shell {
        margin-left: 0;
    }
}

@media (max-width: 767.98px) {
    body {
        background-attachment: scroll;
    }

    .demo-list {
        display: block;
    }

    .content-topbar {
        padding: 1rem;
        border-radius: 20px;
    }

    .hero-banner {
        padding: 1.4rem;
        border-radius: 24px;
    }

    .metric-card,
    .dashboard-card {
        border-radius: 20px;
    }

    .content-panel {
        padding-bottom: 2rem;
    }

    .user-badge {
        width: 100%;
    }

    .user-meta strong {
        max-width: none;
    }

    .brand-block-sidebar {
        gap: 0.8rem !important;
    }

    .brand-block-sidebar .brand-logo {
        width: 68px;
        height: 68px;
        border-radius: 18px;
    }

    .brand-block-sidebar .brand-title {
        font-size: 1.15rem;
    }

    .brand-block-login {
        align-items: flex-start;
    }

    .brand-block-login .brand-logo {
        width: 88px;
        height: 88px;
        border-radius: 22px;
        padding: 0.55rem;
    }

    .brand-block-login .brand-title {
        font-size: 1.45rem;
    }

    .login-card {
        padding: 1.5rem;
    }
}

.login-page {
    background:
        radial-gradient(circle at top left, rgba(245, 197, 66, 0.26), transparent 28%),
        radial-gradient(circle at bottom right, rgba(214, 50, 50, 0.16), transparent 30%),
        linear-gradient(135deg, #f5f9ff 0%, #edf3fb 50%, #fff8de 100%);
}

.login-shell {
    min-height: 100dvh;
}

.login-showcase {
    min-height: 100dvh;
    background: linear-gradient(145deg, rgba(8, 58, 123, 0.98), rgba(10, 77, 163, 0.92) 55%, rgba(214, 50, 50, 0.9) 100%);
    color: var(--msd-white);
    position: relative;
    overflow: hidden;
}

.login-showcase::before,
.login-showcase::after {
    content: "";
    position: absolute;
    border-radius: 50%;
}

.login-showcase::before {
    width: 280px;
    height: 280px;
    top: -80px;
    right: -60px;
    background: rgba(255, 255, 255, 0.1);
}

.login-showcase::after {
    width: 220px;
    height: 220px;
    bottom: -70px;
    left: -40px;
    background: rgba(245, 197, 66, 0.18);
}

.login-showcase-inner {
    max-width: 560px;
    position: relative;
    z-index: 1;
}

.login-title {
    font-size: clamp(1.85rem, 3.3vw, 3rem);
    line-height: 1.02;
    font-weight: 700;
}

.login-copy {
    max-width: 36rem;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.98rem;
}

.login-stat-card {
    padding: 0.85rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

.login-stat-card strong {
    display: block;
    font-size: 1.55rem;
    line-height: 1;
    color: var(--msd-white);
}

.accent-yellow-card {
    background: linear-gradient(135deg, rgba(245, 197, 66, 0.95), rgba(255, 242, 194, 0.92));
}

.accent-yellow-card strong,
.accent-red-card strong,
.accent-white-card strong {
    color: var(--msd-blue-deep);
}

.accent-white-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(241, 247, 255, 0.96));
}

.accent-red-card {
    background: linear-gradient(135deg, rgba(255, 209, 209, 0.96), rgba(255, 238, 238, 0.96));
}

.login-card {
    width: 100%;
    max-width: 470px;
    padding: 1.5rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: var(--msd-shadow);
}

.login-label {
    font-weight: 700;
    color: var(--msd-blue-deep);
}

.login-input-group {
    background: var(--msd-white);
    border: 1px solid rgba(10, 77, 163, 0.14);
    border-radius: 16px;
    overflow: hidden;
}

.login-input-group .input-group-text {
    background: transparent;
    border: 0;
    color: var(--msd-blue);
    padding-left: 1rem;
}

.login-input-group .form-control {
    border: 0;
    padding: 0.95rem 1rem 0.95rem 0.25rem;
    box-shadow: none;
}

.login-input-group:focus-within {
    border-color: rgba(10, 77, 163, 0.38);
    box-shadow: 0 0 0 4px rgba(10, 77, 163, 0.08);
}

.login-link {
    color: var(--msd-blue);
    text-decoration: none;
    font-weight: 600;
}

.login-link:hover {
    color: var(--msd-red);
}

.login-helper,
.login-footer {
    color: var(--msd-muted);
    font-size: 0.95rem;
}

.login-submit {
    padding: 0.82rem 1rem;
    border-radius: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

@media (min-width: 992px) {
    .login-page {
        overflow: hidden;
    }

    .login-row,
    .login-showcase-pane,
    .login-form-pane {
        min-height: 100dvh;
    }

    .login-showcase-inner {
        padding-top: 1.75rem !important;
        padding-bottom: 1.75rem !important;
    }

    .login-form-pane {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }

    .login-highlights {
        --bs-gutter-y: 0.75rem;
    }

    .demo-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 0.8rem;
    }
}