.national-day-intro,
.national-day-card-visual,
.seasonal-only {
    display: none;
}

html.national-day-season body.login-page {
    --national-blue: #0040ff;
    --national-red: #ff0d00;
    --national-yellow: #ffe800;
    --national-ink: #10245a;
}

html.national-day-season body.login-page .main-content {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    padding: 0 !important;
    background:
        radial-gradient(circle at 8% 18%, rgba(0, 64, 255, 0.08), transparent 25%),
        radial-gradient(circle at 92% 82%, rgba(255, 232, 0, 0.12), transparent 22%),
        linear-gradient(180deg, #fbfcff 0%, #f4f7fd 100%);
}

html.national-day-season .login-shell::before {
    content: "";
    position: fixed;
    width: min(26vw, 360px);
    height: min(26vw, 360px);
    top: -16vw;
    right: -8vw;
    border: clamp(18px, 2.6vw, 38px) solid rgba(255, 13, 0, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

html.national-day-season .login-layout {
    position: relative;
    z-index: 1;
    grid-template-columns: minmax(0, 1.12fr) minmax(340px, 430px);
}

html.national-day-season .login-kicker-default,
html.national-day-season .seasonal-default,
html.national-day-season .login-features {
    display: none;
}

html.national-day-season .seasonal-only {
    display: inline;
}

html.national-day-season .national-day-intro {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 8.7;
    margin-bottom: 22px;
    overflow: hidden;
    border: 1px solid rgba(16, 36, 90, 0.1);
    border-radius: 30px 70px 30px 30px;
    background: #f7f8fc;
    box-shadow: 0 24px 58px rgba(16, 36, 90, 0.13);
}

html.national-day-season .national-day-intro .national-day-community {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

html.national-day-season .national-day-intro .national-day-flag {
    position: absolute;
    top: 24px;
    left: 24px;
    width: 126px;
    aspect-ratio: 2 / 1;
    border: 1px solid rgba(16, 36, 90, 0.18);
    box-shadow: 0 12px 28px rgba(16, 36, 90, 0.2);
}

html.national-day-season .login-hero h1 {
    max-width: none;
    margin-bottom: 12px;
    color: var(--national-ink) !important;
    font-size: clamp(2.5rem, 4vw, 3.55rem);
    font-weight: 750;
    letter-spacing: -0.045em;
}

html.national-day-season .login-hero h1::after {
    content: "";
    display: inline-block;
    width: 58px;
    height: 6px;
    margin-left: 16px;
    vertical-align: 0.18em;
    background: linear-gradient(90deg, var(--national-red) 0 44%, var(--national-yellow) 44% 100%);
    border-radius: 999px;
}

html.national-day-season .login-hero p {
    max-width: 34rem;
    margin-bottom: 0;
    color: rgba(16, 36, 90, 0.7);
}

html.national-day-season .login-card {
    position: relative;
    border: 1px solid rgba(16, 36, 90, 0.1);
    border-radius: 28px;
    box-shadow: 0 28px 60px rgba(16, 36, 90, 0.14);
}

html.national-day-season .login-card::before {
    content: "";
    position: absolute;
    z-index: 2;
    top: 0;
    right: 30px;
    left: 30px;
    height: 4px;
    background: linear-gradient(90deg, var(--national-blue) 0 54%, var(--national-yellow) 54% 76%, var(--national-red) 76% 100%);
    border-radius: 0 0 999px 999px;
}

html.national-day-season .login-logo,
html.national-day-season .login-submit {
    background: var(--national-blue);
}

html.national-day-season .login-logo {
    box-shadow:
        0 16px 32px rgba(0, 64, 255, 0.2),
        10px -8px 0 -7px var(--national-yellow),
        -10px 8px 0 -7px rgba(255, 13, 0, 0.9);
}

html.national-day-season .login-head h3 {
    color: var(--national-ink);
}

html.national-day-season .login-panel {
    border-color: rgba(0, 64, 255, 0.12);
}

html.national-day-season .login-panel-label i,
html.national-day-season .login-db-option-check {
    color: var(--national-blue);
}

html.national-day-season .login-input,
html.national-day-season .login-db-trigger,
html.national-day-season .login-db-option,
html.national-day-season .login-sheet-close,
html.national-day-season .login-submit {
    transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1),
        border-color 220ms cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 220ms cubic-bezier(0.16, 1, 0.3, 1),
        background-color 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

html.national-day-season .login-input:hover,
html.national-day-season .login-db-trigger:hover,
html.national-day-season .login-db-option:hover,
html.national-day-season .login-sheet-close:hover {
    border-color: rgba(0, 64, 255, 0.4);
}

html.national-day-season .login-input:focus,
html.national-day-season .login-db-trigger:focus-visible,
html.national-day-season .login-db-option:focus-visible,
html.national-day-season .login-sheet-close:focus-visible,
html.national-day-season .login-submit:focus-visible {
    outline: 3px solid var(--national-yellow);
    outline-offset: 3px;
    box-shadow: none;
}

html.national-day-season .login-db-trigger:active,
html.national-day-season .login-db-option:active,
html.national-day-season .login-sheet-close:active,
html.national-day-season .login-submit:active {
    transform: translateY(1px) scale(0.99);
}

html.national-day-season .login-submit:hover {
    background: #0037dc;
    box-shadow: 0 18px 34px rgba(0, 64, 255, 0.24);
}

html.national-day-season .login-submit:disabled,
html.national-day-season .login-db-trigger:disabled,
html.national-day-season .login-db-option:disabled,
html.national-day-season .login-sheet-close:disabled,
html.national-day-season .login-input:disabled {
    cursor: not-allowed;
    filter: grayscale(0.55);
    opacity: 0.58;
    transform: none;
}

html.national-day-season .login-db-option.is-active .login-db-option-check {
    border-color: var(--national-blue);
    background: var(--national-blue);
    color: #fff;
}

@media (max-width: 1023px) {
    html.national-day-season .login-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    html.national-day-season .login-card {
        border-radius: 26px;
    }

    html.national-day-season .national-day-card-visual {
        position: relative;
        display: block;
        height: 118px;
        overflow: hidden;
        background: #f7f8fc;
    }

    html.national-day-season .national-day-card-visual::after {
        content: "";
        position: absolute;
        inset: auto 0 0;
        height: 34px;
        background: linear-gradient(transparent, #fff);
        pointer-events: none;
    }

    html.national-day-season .national-day-card-visual .national-day-community {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center 28%;
    }

    html.national-day-season .national-day-card-visual .national-day-flag {
        position: absolute;
        z-index: 1;
        top: 18px;
        left: 18px;
        width: 86px;
        aspect-ratio: 2 / 1;
        border: 1px solid rgba(16, 36, 90, 0.18);
        box-shadow: 0 9px 22px rgba(16, 36, 90, 0.2);
    }

    html.national-day-season .login-head {
        padding-top: 12px;
    }
}

@media (max-width: 576px) {
    html.national-day-season body.login-page .main-content {
        background: radial-gradient(circle at 88% 6%, rgba(255, 13, 0, 0.08), transparent 23%), radial-gradient(circle at 8% 92%, rgba(255, 232, 0, 0.16), transparent 25%), linear-gradient(180deg, #f8faff 0%, #f3f6fd 100%);
    }
    html.national-day-season .login-card { border-radius: 22px; box-shadow: 0 22px 48px rgba(16, 36, 90, 0.13); }
    html.national-day-season .national-day-card-visual { height: 88px; }
    html.national-day-season .national-day-card-visual .national-day-flag { top: 12px; left: 12px; width: 70px; }
}

@media (max-width: 576px) and (max-height: 740px) {
    html.national-day-season .login-shell { padding: 4px 8px calc(4px + env(safe-area-inset-bottom)); }
    html.national-day-season .national-day-card-visual { height: 56px; }
    html.national-day-season .national-day-card-visual .national-day-flag { top: 7px; left: 10px; width: 56px; }
    html.national-day-season .login-head { padding: 4px 10px; }
    html.national-day-season .login-logo { width: 48px; height: 48px; margin-bottom: 3px; border-radius: 16px; }
    html.national-day-season .login-logo img { width: 31px; }
    html.national-day-season .login-head h2 { font-size: 0.66rem; }
    html.national-day-season .login-head h3 { margin-top: 2px; font-size: 1.35rem; }
    html.national-day-season .login-body { padding: 0 10px 8px; }
    html.national-day-season .login-panel { padding: 7px 9px; border-radius: 15px; }
    html.national-day-season .login-panel-label { margin-bottom: 5px; }
    html.national-day-season .login-panel + .login-panel { margin-top: 6px; }
    html.national-day-season .login-field + .login-field { margin-top: 5px; }
    html.national-day-season .login-field label { margin-bottom: 4px; }
    html.national-day-season .login-input, html.national-day-season .login-db-trigger, html.national-day-season .login-submit { min-height: 48px; padding: 7px 11px; }
    html.national-day-season .login-db-status { margin-top: 4px; }
    html.national-day-season .login-submit { margin-top: 7px; }
}

@media (prefers-reduced-motion: reduce) {
    html.national-day-season .login-input,
    html.national-day-season .login-db-trigger,
    html.national-day-season .login-db-option,
    html.national-day-season .login-sheet-close,
    html.national-day-season .login-submit {
        transition: none;
    }
}
