@media screen {
    [data-public-theme="dark"] body:not(.aksesibilitas-mode) {
        --account-surface: #14273b;
        --account-inset: #102033;
        --account-field: #0d1b2b;
        --account-outline: #4e6b85;
        --account-muted: #c7d7e8;
        --account-accent: #a5ead4;
        --public-panel: var(--account-surface);
        --public-panel-gradient: linear-gradient(140deg, #20384e, var(--account-surface) 65%);
        --public-raised: #203b53;
        --public-edge: var(--account-outline);
        --public-muted: var(--account-muted);
    }

    [data-public-theme="dark"] body:not(.aksesibilitas-mode) .site-header.login-header {
        background: linear-gradient(120deg, #1e3651f2, #173e46ed);
        border-color: #7dabc55c;
        box-shadow: 0 12px 28px #050d1a55;
    }
    [data-public-theme="dark"] body:not(.aksesibilitas-mode) .page-cover {
        background-image: linear-gradient(180deg, #142943ab, var(--public-night)),
            url('../img/pelayanan/back-gedung.jpg');
    }
    [data-public-theme="dark"] body:not(.aksesibilitas-mode) :is(.login-card, .card-profile) {
        box-shadow: 0 20px 60px #030b1880 !important;
    }
    [data-public-theme="dark"] body:not(.aksesibilitas-mode) :is(.login-form-surface, .account-option, .registration-section) {
        --public-panel-gradient: var(--account-inset);
    }
    [data-public-theme="dark"] body.public-service:not(.aksesibilitas-mode) .card-body.bg-secondary {
        background: var(--account-inset) !important;
        border-color: var(--account-outline);
    }
    [data-public-theme="dark"] body.registration-page:not(.aksesibilitas-mode) .registration-body.card-body.bg-secondary {
        background: transparent !important;
    }

    [data-public-theme="dark"] body:not(.aksesibilitas-mode) :is(
        .login-field label, .public-service .form-group label, .service-stats strong, .account-return
    ) { color: var(--public-ink); }

    [data-public-theme="dark"] body:not(.aksesibilitas-mode) :is(
        .account-options, .service-stats, .registration-section-heading, .registration-login, .login-footer
    ) { border-color: var(--account-outline); }
    [data-public-theme="dark"] body.public-service:not(.aksesibilitas-mode) .card-profile .border-top {
        border-color: var(--account-outline) !important;
    }

    [data-public-theme="dark"] body:not(.aksesibilitas-mode) :is(
        .login-input, .public-service .form-control, .public-service .input-group-alternative,
        .public-service .select2-selection, .select2-dropdown
    ) {
        background: var(--account-field);
        border-color: var(--account-outline);
        color: var(--public-ink);
    }
    [data-public-theme="dark"] body.public-service:not(.aksesibilitas-mode) .input-group-alternative {
        background: var(--public-night);
    }
    [data-public-theme="dark"] body.public-service:not(.aksesibilitas-mode) .input-group-text {
        background: transparent;
        color: var(--public-link);
    }
    [data-public-theme="dark"] body:not(.aksesibilitas-mode) :is(.login-input, .public-service .form-control)::placeholder {
        color: var(--account-muted);
        opacity: .85;
    }
    [data-public-theme="dark"] body:not(.aksesibilitas-mode) :is(
        .login-input:focus, .public-service .form-control:focus,
        .public-service .input-group-alternative:focus-within, .public-service .select2-container--focus .select2-selection
    ) {
        border-color: var(--account-accent);
        box-shadow: 0 0 0 3px #a5ead428;
    }
    [data-public-theme="dark"] body:not(.aksesibilitas-mode) .registration-domisili-fields {
        background: var(--account-surface);
        border-color: var(--account-outline);
    }
    [data-public-theme="dark"] body:not(.aksesibilitas-mode) .public-service input[type="file"]::file-selector-button {
        background: #23445d;
        color: var(--public-ink);
    }
    [data-public-theme="dark"] body:not(.aksesibilitas-mode) .select2-results__option[aria-selected="true"] {
        background: #254862;
        color: var(--public-ink);
    }
    [data-public-theme="dark"] body:not(.aksesibilitas-mode) .select2-results__option--highlighted {
        background: #266451;
        color: #fff;
    }

    [data-public-theme="dark"] body:not(.aksesibilitas-mode) :is(
        .login-form-surface .primary, .public-service form .btn-primary
    ) {
        background: linear-gradient(110deg, #255b76, #226751);
        border: 1px solid #70b6a4;
        color: #fff;
        font-weight: 700;
    }
    [data-public-theme="dark"] body:not(.aksesibilitas-mode) :is(
        .login-form-surface .primary, .public-service form .btn-primary
    ):enabled:hover {
        background: linear-gradient(110deg, #2b6684, #2b715a);
        border-color: var(--account-accent);
    }
    [data-public-theme="dark"] body:not(.aksesibilitas-mode) :is(
        .login-form-surface .primary, .public-service form .btn-primary
    ):disabled {
        background: #263b51;
        border-color: var(--account-outline);
        color: var(--account-muted);
        opacity: 1;
    }
    [data-public-theme="dark"] body:not(.aksesibilitas-mode) .password-toggle:hover {
        background: #223e56;
    }
    [data-public-theme="dark"] body:not(.aksesibilitas-mode) :is(.account-return, .registration-login) .btn-success {
        background: transparent;
        border: 1px solid var(--account-outline);
        color: var(--public-link);
        margin-top: 8px;
        padding-inline: 14px;
    }
    [data-public-theme="dark"] body:not(.aksesibilitas-mode) :is(.account-return, .registration-login) .btn-success:hover {
        background: #24435b;
    }
    [data-public-theme="dark"] body:not(.aksesibilitas-mode) .option-register {
        --public-raised: #1b443d;
        --public-link: #b1f0d8;
    }
    [data-public-theme="dark"] body:not(.aksesibilitas-mode) .option-email {
        --public-raised: #493b29;
        --public-link: #ffe0a3;
    }

    [data-public-theme="dark"] body:not(.aksesibilitas-mode) :is(
        .login-cooldown-notice, .reset-page .alert-warning, .email-page .email-repair-notice
    ) {
        background: #382d20;
        color: #ffdea6;
        border-color: #846642;
    }
    [data-public-theme="dark"] body:not(.aksesibilitas-mode) .email-repair-notice :is(
        h2, .email-repair-notice__icon, .email-repair-notice__message, .email-repair-notice__label,
        #email-repair-wait, .email-repair-notice__hint
    ) { color: #ffe5bb; }
    [data-public-theme="dark"] body:not(.aksesibilitas-mode) .email-repair-notice :is(
        .email-repair-notice__timer, .email-repair-notice__icon
    ) {
        background: #473824;
        border-color: #846642;
    }
    [data-public-theme="dark"] body:not(.aksesibilitas-mode) .public-service .alert-danger {
        background: #422937;
        border-color: #8d5264;
        color: #ffd8df;
    }
    [data-public-theme="dark"] body:not(.aksesibilitas-mode) .public-service :is(.text-danger, .invalid-feedback) {
        color: #ffb7c3 !important;
    }
    [data-public-theme="dark"] body:not(.aksesibilitas-mode) .public-service .text-success {
        color: var(--account-accent) !important;
    }
}

@media screen and (max-width: 575px) {
    [data-public-theme="dark"] body:not(.aksesibilitas-mode) .login-header .header-links {
        position: relative;
        justify-content: space-between;
        gap: 4px;
    }
    [data-public-theme="dark"] body:not(.aksesibilitas-mode) .login-header .header-links a {
        flex: 0 1 auto;
        padding-inline: 4px;
    }
    [data-public-theme="dark"] body:not(.aksesibilitas-mode) .login-header .public-theme-control {
        position: static;
        margin: 0 0 0 auto;
    }
    [data-public-theme="dark"] body:not(.aksesibilitas-mode) .login-header .public-theme-trigger {
        gap: 5px;
        min-height: 40px;
        padding: 3px 7px 3px 4px;
    }
    [data-public-theme="dark"] body:not(.aksesibilitas-mode) .login-header .public-theme-icon {
        width: 25px;
        height: 25px;
    }
    [data-public-theme="dark"] body:not(.aksesibilitas-mode) .login-header .public-theme-panel {
        inset-inline: auto 0;
        transform: none;
    }
}

@media screen and (max-width: 520px) {
    [data-public-theme="dark"] body:is(.reset-page, .email-page):not(.aksesibilitas-mode) .card-body.bg-secondary {
        background: transparent !important;
        box-shadow: none !important;
    }
}
