/* =========================================================
   SATU DATA GIANYAR 2026
   Authentication Page
   ========================================================= */

:root {
    --gianyar-red: #e31e24;
    --gianyar-red-dark: #7d1015;
    --gianyar-maroon: #3b0b10;
    --gianyar-dark: #210609;
    --gianyar-white: #ffffff;
    --gianyar-muted: #737987;
}


/* =========================================================
   ROOT
   ========================================================= */

.auth-page {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    background: #f8f8fa;
}

.auth-root {
    position: relative;

    width: 100%;
    min-height: 100vh;

    overflow: hidden;

    background:
        url('/assets/media/auth/login-background.png')
        center center / cover no-repeat;
}

.auth-root::before {
    content: "";

    position: absolute;

    top: -15%;
    left: 48%;

    width: 22%;
    height: 130%;

    background:
        linear-gradient(
            135deg,
            rgba(227, 30, 36, 0.88),
            rgba(125, 16, 21, 0.72)
        );

    clip-path: polygon(
        35% 0,
        100% 0,
        65% 100%,
        0 100%
    );

    opacity: 0.72;

    z-index: 3;

    pointer-events: none;
}

.auth-root::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            100deg,
            transparent 48%,
            rgba(255, 255, 255, 0.04) 55%,
            rgba(255, 245, 246, 0.48) 78%,
            rgba(255, 235, 237, 0.78) 100%
        );

    z-index: 2;

    pointer-events: none;
}


/* =========================================================
   LEFT BRAND PANEL
   ========================================================= */

.auth-brand-panel {
    position: relative;

    width: 100%;
    min-height: 100vh;

    overflow: hidden;

    background: transparent;
}


/*
|--------------------------------------------------------------------------
| Dark cinematic overlay
|--------------------------------------------------------------------------
*/

.auth-brand-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            135deg,
            rgba(30, 3, 7, 0.72) 0%,
            rgba(75, 8, 15, 0.38) 42%,
            rgba(45, 5, 10, 0.55) 100%
        );

    z-index: 1;

    pointer-events: none;
}


/*
|--------------------------------------------------------------------------
| Red glow
|--------------------------------------------------------------------------
*/

.auth-brand-glow {
    position: absolute;

    width: 650px;
    height: 650px;

    right: -250px;
    top: -250px;

    background: rgba(255, 40, 45, 0.2);

    filter: blur(100px);
    border-radius: 50%;

    z-index: 2;
}


/*
|--------------------------------------------------------------------------
| CONTENT
|--------------------------------------------------------------------------
*/

.auth-brand-content {
    position: relative;

    width: 100%;
    min-height: 100vh;

    padding: 72px 90px 48px;

    display: flex;
    flex-direction: column;

    z-index: 5;
}


/* =========================================================
   LOGO
   ========================================================= */

.auth-brand-logo {
    display: inline-flex;
    align-items: center;

    width: fit-content;

    text-decoration: none;
}

.auth-brand-logo img {
    width: auto;
    max-width: 300px;
    max-height: 75px;
}


/* =========================================================
   BRAND MESSAGE
   ========================================================= */

.auth-brand-message {
    position: absolute;

    left: 90px;
    top: 46%;

    max-width: 560px;

    transform: translateY(-50%);
}

.auth-brand-message h1 {
    margin: 0;

    color: #ffffff;

    font-size: clamp(2.4rem, 3vw, 3.35rem);

    font-weight: 700;

    line-height: 1.12;
    letter-spacing: -0.035em;
}

.auth-brand-message h1 span {
    color: #ff343a;
}


/* =========================================================
   GOVERNMENT IDENTITY
   ========================================================= */

.auth-government {
    position: absolute;

    left: 90px;
    bottom: 48px;

    display: flex;
    align-items: center;

    gap: 18px;
}

.auth-government-line {
    width: 3px;
    height: 42px;

    background: var(--gianyar-red);

    border-radius: 10px;
}

.auth-government-title {
    color: #ffffff;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 0.18em;
}

.auth-government-subtitle {
    margin-top: 5px;

    color: rgba(255, 255, 255, 0.75);

    font-size: 13px;
    letter-spacing: 0.04em;
}


/* =========================================================
   DECORATIVE GEOMETRY
   ========================================================= */

.auth-decoration {
    position: absolute;

    border: 1px solid rgba(255, 70, 75, 0.45);

    transform: rotate(32deg);

    z-index: 3;

    pointer-events: none;
}

.auth-decoration-top {
    width: 560px;
    height: 560px;

    right: -330px;
    top: -390px;

    border-radius: 80px;
}

.auth-decoration-bottom {
    width: 520px;
    height: 520px;

    right: -350px;
    bottom: -390px;

    border-radius: 80px;
}


/* =========================================================
   RIGHT PANEL
   ========================================================= */

.auth-login-panel {
    position: absolute;

    inset: 0;

    width: 100%;
    min-height: 100vh;

    display: flex;
    justify-content: flex-end;
    align-items: flex-start;

    padding: 0;

    background: transparent;

    z-index: 10;

    pointer-events: none;
}


/* =========================================================
   LANGUAGE
   ========================================================= */

.auth-language {
    position: absolute;

    top: 38px;
    right: 55px;

    z-index: 30;

    pointer-events: auto;
}

.auth-language-toggle {
    display: inline-flex;
    align-items: center;

    gap: 9px;

    padding: 7px 11px;

    color: #343842;

    background: rgba(255, 255, 255, 0.32);

    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 999px;

    font-size: 13px;
    font-weight: 500;

    line-height: 1;

    backdrop-filter: blur(12px);

    box-shadow:
        0 4px 15px rgba(60, 10, 15, 0.04);

    cursor: pointer;

    transition:
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.auth-language-toggle:hover {
    background: rgba(255, 255, 255, 0.55);

    box-shadow:
        0 6px 18px rgba(60, 10, 15, 0.08);
}

.auth-language-flag {
    width: 22px;
    height: 22px;

    object-fit: cover;

    border-radius: 50%;

    flex-shrink: 0;
}

.auth-language-name {
    white-space: nowrap;
}

.auth-language-chevron {
    margin-left: 2px;

    color: #737987;

    font-size: 11px;
}


/* =========================================================
   LOGIN CONTAINER
   ========================================================= */

.auth-login-container {
    position: absolute;

    top: 50%;
    right: 3.2%;

    width: min(40vw, 620px);

    transform: translateY(-50%);

    z-index: 20;

    pointer-events: auto;
}


/* =========================================================
   LOGIN CARD
   ========================================================= */

.auth-login-card {
    position: relative;

    overflow: hidden;

    min-height: 0;
    height: 76vh;

    padding: 68px 62px 90px;

    background: rgba(255, 255, 255, 0.94);

    border: 1px solid rgba(255, 255, 255, 0.90);

    border-radius: 22px;

    box-shadow:
        0 35px 90px rgba(50, 8, 12, 0.18),
        0 10px 30px rgba(50, 8, 12, 0.08);

    backdrop-filter: blur(18px);
}


/* =========================================================
   CARD BRAND
   ========================================================= */

.auth-card-brand {
    display: flex;
    align-items: center;

    gap: 38px;

    margin-bottom: 54px;
}

.auth-card-brand, .auth-login-content {
    position: relative;
    z-index: 2;
}

.auth-card-logo {
    width: 130px;
    height: 152px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-right: 3px solid var(--gianyar-red);
}

.auth-card-logo img {
    width: 100px;
    height: 100px;

    object-fit: contain;
}

.auth-card-brand-text {
    min-width: 0;
}

.auth-card-title {
    color: #202431;

    font-size: 40px;
    font-weight: 750;

    line-height: 0.98;
    letter-spacing: -0.035em;
}

.auth-card-title span {
    color: var(--gianyar-red);
}

.auth-card-subtitle {
    margin-top: 22px;

    color: #858a98;

    font-size: 17px;
    line-height: 1.4;
}


/* =========================================================
   LOGIN CONTENT
   ========================================================= */

.auth-login-content .form {
    width: 100% !important;
}

.auth-form-title {
    margin: 0 0 8px;

    color: #202431;

    font-size: 34px;
    font-weight: 700;

    line-height: 1.1;
    letter-spacing: -0.03em;
}

.auth-form-subtitle {
    color: #858a98;

    font-size: 14px;
    font-weight: 500;

    line-height: 1.5;
}


/*
|--------------------------------------------------------------------------
| Hide duplicate title from existing login page
|--------------------------------------------------------------------------
|
| We already display the application identity above.
| Keep Sign In from the actual page content.
*/


/* =========================================================
   INPUT
   ========================================================= */

.auth-login-content .form-control {
    height: 56px;

    padding: 0 18px;

    color: #252936;

    background: #ffffff !important;

    border: 1px solid #dfe2e8;
    border-radius: 12px;
}

.auth-login-content .form-control:focus {
    background: #ffffff !important;

    border-color: var(--gianyar-red);

    box-shadow:
        0 0 0 4px rgba(227, 30, 36, 0.08);
}

.auth-login-content .form-control::placeholder {
    color: #9297a4;
}

.auth-login-content .form-control:-webkit-autofill,
.auth-login-content .form-control:-webkit-autofill:hover,
.auth-login-content .form-control:-webkit-autofill:focus {
    -webkit-text-fill-color: #252936;

    -webkit-box-shadow:
        0 0 0 1000px #ffffff inset !important;

    box-shadow:
        0 0 0 1000px #ffffff inset !important;

    transition:
        background-color 9999s ease-in-out 0s;
}


/* =========================================================
   LOGIN BUTTON
   ========================================================= */

.auth-login-content .btn-primary {
    height: 56px;

    color: #ffffff !important;

    background:
        linear-gradient(
            135deg,
            #e31e24,
            #c9161c
        ) !important;

    border: none !important;

    border-radius: 11px;

    font-weight: 650;

    box-shadow:
        0 10px 25px rgba(227, 30, 36, 0.25);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.auth-login-content .btn-primary:hover {
    transform: translateY(-1px);

    box-shadow:
        0 14px 30px rgba(227, 30, 36, 0.32);
}


/* =========================================================
   LANDSCAPE DECORATION
   ========================================================= */

.auth-card-landscape {
    position: absolute;

    left: 0;
    right: 0;
    bottom: -13px;

    height: 180px;

    pointer-events: none;

    opacity: 0.5;

    z-index: 1;
}

.auth-card-landscape img {
    position: absolute;

    left: 0;
    bottom: -2px;

    width: 105%;
    height: auto;

    max-width: none;

    display: block;
}


/* =========================================================
   FOOTER
   ========================================================= */

.auth-footer {
    position: absolute;

    right: 55px;
    bottom: 38px;

    z-index: 30;

    pointer-events: auto;
}

.auth-footer-links {
    display: flex;
    align-items: center;

    gap: 15px;
}

.auth-footer a {
    color: #ffffff !important;

    font-size: 13px;
    font-weight: 500;

    line-height: 1.4;

    text-decoration: none;

    white-space: nowrap;

    transition:
        color 0.2s ease;
}

.auth-footer a:hover {
    color: var(--gianyar-red) !important;
}

.auth-footer-divider {
    width: 1px;
    height: 14px;

    background: rgb(255, 255, 255);
}


/* =========================================================
   SWAL ALERT
   ========================================================= */
div:where(.swal2-container) button:where(.swal2-styled).swal2-confirm {
    background-color: var(--gianyar-red) !important;
    color: var(--gianyar-white) !important;
    border: 0;
}

div:where(.swal2-container) button:where(.swal2-styled).swal2-confirm:hover {
    background-color: var(--gianyar-red-dark) !important;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */


/* =========================================================
   LARGE TABLET / SMALL DESKTOP
   992px - 1199px
   ========================================================= */

@media (max-width: 1199.98px) {

    /*
    |--------------------------------------------------------------------------
    | BRAND
    |--------------------------------------------------------------------------
    */

    .auth-brand-content {
        padding: 60px 65px 40px;
    }

    .auth-brand-message {
        left: 65px;

        max-width: 500px;
    }

    .auth-brand-message h1 {
        font-size: clamp(2.3rem, 4vw, 3rem);
    }

    .auth-government {
        left: 65px;
        bottom: 40px;
    }


    /*
    |--------------------------------------------------------------------------
    | LOGIN PANEL
    |--------------------------------------------------------------------------
    */

    .auth-login-panel {
        /*
        Keep the desktop composition.
        Do NOT switch to block yet.
        */
        position: absolute;

        inset: 0;

        width: 100%;
        min-height: 100vh;

        padding: 0;

        justify-content: flex-end;
        align-items: flex-start;
    }


    /*
    |--------------------------------------------------------------------------
    | LANGUAGE
    |--------------------------------------------------------------------------
    */

    .auth-language {
        top: 30px;
        right: 35px;
    }


    /*
    |--------------------------------------------------------------------------
    | LOGIN CONTAINER
    |--------------------------------------------------------------------------
    */

    .auth-login-container {
        top: 50%;
        right: 3%;

        width: min(43vw, 560px);

        transform: translateY(-50%);
    }


    /*
    |--------------------------------------------------------------------------
    | LOGIN CARD
    |--------------------------------------------------------------------------
    */

    .auth-login-card {
        height: 78vh;

        padding: 52px 48px 75px;

        border-radius: 20px;
    }


    /*
    |--------------------------------------------------------------------------
    | CARD BRAND
    |--------------------------------------------------------------------------
    */

    .auth-card-brand {
        gap: 28px;

        margin-bottom: 38px;
    }

    .auth-card-logo {
        width: 105px;
        height: 125px;
    }

    .auth-card-logo img {
        width: 82px;
        height: 82px;
    }

    .auth-card-title {
        font-size: 32px;
    }

    .auth-card-subtitle {
        margin-top: 14px;

        font-size: 14px;
    }


    /*
    |--------------------------------------------------------------------------
    | LOGIN FORM
    |--------------------------------------------------------------------------
    */

    .auth-form-title {
        font-size: 31px;
    }


    /*
    |--------------------------------------------------------------------------
    | LANDSCAPE
    |--------------------------------------------------------------------------
    */

    .auth-card-landscape {
        height: 155px;
    }
}


/* =========================================================
   TABLET / MOBILE
   <= 991px
   ========================================================= */

@media (max-width: 991.98px) {

    /*
    |--------------------------------------------------------------------------
    | ROOT
    |--------------------------------------------------------------------------
    |
    | Desktop uses a single full-screen composition.
    | Mobile becomes a normal vertical page.
    |
    */

    .auth-root {
        display: flex;
        flex-direction: column;

        min-height: 100vh;

        overflow: visible;

        background:
            url('/assets/media/auth/login-background.png')
            center top / cover no-repeat;
    }


    /*
    |--------------------------------------------------------------------------
    | ROOT DECORATION
    |--------------------------------------------------------------------------
    |
    | The large desktop red diagonal should not interfere
    | with the mobile layout.
    |
    */

    .auth-root::before {
        top: 0;
        left: 0;

        width: 100%;
        height: 420px;

        background:
            linear-gradient(
                180deg,
                rgba(125, 16, 21, 0.75),
                rgba(125, 16, 21, 0.20),
                transparent
            );

        clip-path: none;

        opacity: 1;
    }

    .auth-root::after {
        background:
            linear-gradient(
                180deg,
                rgba(30, 3, 7, 0.20),
                transparent 45%
            );
    }


    /*
    |--------------------------------------------------------------------------
    | BRAND PANEL
    |--------------------------------------------------------------------------
    */

    .auth-brand-panel {
        width: 100%;
        min-height: 330px;

        position: relative;

        overflow: hidden;

        flex-shrink: 0;
    }


    /*
    |--------------------------------------------------------------------------
    | BRAND CONTENT
    |--------------------------------------------------------------------------
    */

    .auth-brand-content {
        width: 100%;
        min-height: 330px;

        padding: 35px 40px;
    }


    /*
    |--------------------------------------------------------------------------
    | BRAND LOGO
    |--------------------------------------------------------------------------
    */

    .auth-brand-logo img {
        max-width: 230px;
        max-height: 60px;
    }


    /*
    |--------------------------------------------------------------------------
    | BRAND MESSAGE
    |--------------------------------------------------------------------------
    */

    .auth-brand-message {
        position: absolute;

        left: 40px;
        right: 40px;
        top: auto;
        bottom: 45px;

        max-width: 600px;

        margin: 0;

        transform: none;
    }

    .auth-brand-message h1 {
        font-size: clamp(2rem, 5vw, 2.6rem);
    }


    /*
    |--------------------------------------------------------------------------
    | GOVERNMENT IDENTITY
    |--------------------------------------------------------------------------
    |
    | Hide it on tablet/mobile because the login card/footer
    | becomes the primary lower section.
    |
    */

    .auth-government {
        display: none;
    }


    /*
    |--------------------------------------------------------------------------
    | LOGIN PANEL
    |--------------------------------------------------------------------------
    |
    | IMPORTANT:
    | Desktop panel is absolute.
    | Mobile panel becomes normal document flow.
    |
    */

    .auth-login-panel {
        position: relative;

        inset: auto;

        width: 100%;
        min-height: auto;

        display: block;

        padding: 70px 30px 45px;

        background:
            linear-gradient(
                180deg,
                rgba(255, 255, 255, 0.92),
                rgba(255, 245, 246, 0.96)
            );

        z-index: 10;

        pointer-events: auto;
    }


    /*
    |--------------------------------------------------------------------------
    | LANGUAGE
    |--------------------------------------------------------------------------
    */

    .auth-language {
        position: absolute;

        top: 22px;
        right: 30px;

        z-index: 20;
    }

    .auth-language .text-gray-700 {
        color: #343842 !important;
    }


    /*
    |--------------------------------------------------------------------------
    | LOGIN CONTAINER
    |--------------------------------------------------------------------------
    */

    .auth-login-container {
        position: relative;

        top: auto;
        right: auto;

        width: 100%;
        max-width: 620px;

        margin: 0 auto;

        transform: none;

        z-index: 20;
    }


    /*
    |--------------------------------------------------------------------------
    | LOGIN CARD
    |--------------------------------------------------------------------------
    */

    .auth-login-card {
        width: 100%;

        height: auto;
        min-height: 0;

        padding: 45px 40px 75px;

        border-radius: 20px;
    }


    /*
    |--------------------------------------------------------------------------
    | CARD BRAND
    |--------------------------------------------------------------------------
    */

    .auth-card-brand {
        gap: 16px;

        margin-bottom: 34px;
    }

    .auth-card-logo {
        width: 68px;
        height: 85px;

        border-right-width: 2px;
    }

    .auth-card-logo img {
        width: 58px;
        height: 58px;
    }

    .auth-card-title {
        font-size: 24px;
    }

    .auth-card-subtitle {
        margin-top: 8px;

        font-size: 11px;
    }


    /*
    |--------------------------------------------------------------------------
    | LOGIN FORM
    |--------------------------------------------------------------------------
    */

    .auth-form-title {
        font-size: 30px;
    }


    /*
    |--------------------------------------------------------------------------
    | LANDSCAPE
    |--------------------------------------------------------------------------
    */

    .auth-card-landscape {
        height: 150px;

        bottom: -8px;
    }


    /*
    |--------------------------------------------------------------------------
    | FOOTER
    |--------------------------------------------------------------------------
    */

    .auth-footer {
        justify-content: center;

        margin-top: 22px;
    }

    .auth-footer a {
        color: #686d79 !important;
    }

    .auth-footer a:hover {
        color: var(--gianyar-red) !important;
    }
}


/* =========================================================
   MOBILE
   <= 575px
   ========================================================= */

@media (max-width: 575.98px) {

    /*
    |--------------------------------------------------------------------------
    | BRAND
    |--------------------------------------------------------------------------
    */

    .auth-brand-panel {
        min-height: 275px;
    }

    .auth-brand-content {
        min-height: 275px;

        padding: 28px 25px;
    }

    .auth-brand-logo img {
        max-width: 190px;
        max-height: 55px;
    }


    /*
    |--------------------------------------------------------------------------
    | BRAND MESSAGE
    |--------------------------------------------------------------------------
    */

    .auth-brand-message {
        left: 25px;
        right: 25px;

        bottom: 30px;
    }

    .auth-brand-message h1 {
        font-size: 1.85rem;

        line-height: 1.12;
    }


    /*
    |--------------------------------------------------------------------------
    | LOGIN PANEL
    |--------------------------------------------------------------------------
    */

    .auth-login-panel {
        padding: 62px 15px 35px;
    }


    /*
    |--------------------------------------------------------------------------
    | LANGUAGE
    |--------------------------------------------------------------------------
    */

    .auth-language {
        top: 20px;
        right: 20px;
    }

    .auth-language img {
        width: 18px !important;
        height: 18px !important;
    }


    /*
    |--------------------------------------------------------------------------
    | LOGIN CARD
    |--------------------------------------------------------------------------
    */

    .auth-login-card {
        padding: 35px 25px 60px;

        border-radius: 18px;
    }


    /*
    |--------------------------------------------------------------------------
    | CARD BRAND
    |--------------------------------------------------------------------------
    */

    .auth-card-brand {
        gap: 13px;

        margin-bottom: 34px;
    }

    .auth-card-logo {
        width: 56px;
        height: 62px;
    }

    .auth-card-logo img {
        width: 42px;
        height: 42px;
    }

    .auth-card-title {
        font-size: 23px;
    }

    .auth-card-subtitle {
        margin-top: 7px;

        font-size: 11px;
        line-height: 1.4;
    }


    /*
    |--------------------------------------------------------------------------
    | LOGIN FORM
    |--------------------------------------------------------------------------
    */

    .auth-form-title {
        font-size: 27px;
    }

    .auth-form-subtitle {
        font-size: 13px;
    }

    .auth-login-content .form-control {
        height: 54px;

        padding: 0 16px;
    }

    .auth-login-content .btn-primary {
        height: 54px;
    }


    /*
    |--------------------------------------------------------------------------
    | LANDSCAPE
    |--------------------------------------------------------------------------
    */

    .auth-card-landscape {
        height: 125px;

        bottom: -5px;

        opacity: 0.35;
    }


    /*
    |--------------------------------------------------------------------------
    | FOOTER
    |--------------------------------------------------------------------------
    */

    .auth-footer {
        margin-top: 18px;
    }

    .auth-footer a {
        font-size: 12px;
    }
}