/* ============================================================
   LOGIN PAGE
============================================================ */

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    overflow: hidden;
    font-family: "Montserrat", sans-serif;
}

.divider-text {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin: 20px 0;
}

.divider-text::before,
.divider-text::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: #ccc;
}

.divider-text span {
    color: #fcfcfc;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}
.guest-info {
    width: 100%;
    display: flex;
    justify-content: center;
    text-align: center;
    margin-top: 5px;
}

.guest-info small {
    display: block;
    color: aliceblue;
    text-align: center;
}
/* ============================================================
   MAIN LOGIN CONTAINER
============================================================ */

.login-page {
    position: relative;

    width: 100vw;
    height: 100vh;

    min-height: 600px;

    background: #2148c0;

    overflow: hidden;
}

/* ============================================================
   BACKGROUND
============================================================ */

.login-bg {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    overflow: hidden;

    pointer-events: none;
}

/* ============================================================
   RIGHT CIRCLES
============================================================ */

.bg-circle {
    position: absolute;

    border-radius: 50%;
}

/* Figma:
   724 x 724
   left 918
   top -362
*/

.bg-circle-1 {
    width: 724px;
    height: 724px;

    right: -362px;
    top: -362px;

    background: #264eca;
}

/* Figma:
   572 x 572
*/

.bg-circle-2 {
    width: 572px;
    height: 572px;

    right: -286px;
    top: -286px;

    background: #244bc5;
}

/* Figma:
   438 x 438
*/

.bg-circle-3 {
    width: 438px;
    height: 438px;

    right: -219px;
    top: -219px;

    background: #274fc7;
}

/* ============================================================
   LEFT BACKGROUND WAVE
============================================================ */

/* .bg-wave {
        position: absolute;

        left: -120px;
        top: -10px;

        width: 865px;
        height: 725px;

        background: #264ECA;

        border-radius: 0 55% 55% 0 / 0 45% 45% 0;

        transform: rotate(-180deg);
    } */

.bg-wave {
    position: absolute;
    /* Mulai dari pojok kiri atas */
    left: -400px;
    top: 0;
    /* Menggunakan unit persentase atau clamp agar skalanya aman di semua layar */
    width: 100%;
    max-width: 1600px;
    /* Batasi agar tidak terlalu raksasa di monitor 4K/Ultrawide */
    height: 100vh;
    overflow: hidden;
    pointer-events: none;
    /* Mencegah wave menghalangi klik pada form login */
}

.bg-wave svg {
    width: 100%;
    height: 100%;
    /* preserveAspectRatio="xMidYMid slice" memastikan SVG selalu proporsional
       dan memenuhi area container tanpa distorsi di berbagai rasio layar */
    object-fit: cover;
}

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

.login-content {
    position: relative;

    z-index: 10;

    width: 938px;
    height: 100%;

    margin: 0 auto;

    display: flex;
    align-items: center;

    justify-content: space-between;
}

/* ============================================================
   LEFT
============================================================ */

.login-left {
    width: 500px;

    height: 100%;

    position: relative;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    padding-top: 40px;
}

/* ============================================================
   DOODLE
============================================================ */

.login-doodle {
    width: 500px;

    height: 300px;

    display: flex;

    justify-content: center;

    align-items: center;

    position: relative;

    z-index: 2;
}

.login-doodle img {
    width: 500px;

    height: 500px;

    object-fit: contain;

    display: block;
}

/* ============================================================
   BRAND TEXT
============================================================ */

.login-brand-text {
    width: 388px;

    margin-top: 18px;

    text-align: right;

    position: relative;

    z-index: 3;
}

.brand-title {
    font-family: "Montserrat", sans-serif;

    font-size: 36px;

    line-height: 0.9;

    font-weight: 700;

    color: #ffffff;

    text-align: right;

    text-transform: uppercase;
}

.brand-version {
    margin-top: 12px;

    padding-right: 0;

    font-family: "Montserrat", sans-serif;

    font-size: 18px;

    line-height: 1;

    font-weight: 400;

    color: #ffffff;

    text-align: right;
}

/* ============================================================
   RIGHT LOGIN
============================================================ */

.login-right {
    width: 300px;

    height: 478px;

    position: relative;

    display: flex;

    flex-direction: column;

    align-items: center;

    margin-top: 0;
}

/* ============================================================
   LOGOS
============================================================ */

.login-logos {
    width: 161px;

    height: 176px;

    position: relative;

    margin-bottom: 18px;
}

/* GISO */

.logo-giso {
    position: absolute;

    width: 112px;

    height: 119px;

    left: 20px;
 
    top: -90px;

    object-fit: contain;
}

/* BBWS + PU */

.other-logos {
    position: absolute;

    left: 0;

    bottom: 0;

    width: 161px;

    height: 45px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 14px;
}

.logo-bbws {
    width: 110px;

    height: 25px;

    object-fit: contain;
}

.logo-pu {
    width: 37px;

    height: 37px;

    object-fit: contain;
}

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

.login-input-group {
    position: relative;

    width: 300px;

    height: 45px;

    margin-bottom: 20px;
}

.login-input {
    box-sizing: border-box;

    width: 300px;

    height: 45px;

    padding-left: 50px;

    padding-right: 15px;

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

    border-radius: 4px;

    outline: none;

    background: transparent;

    color: #ffffff;

    font-family: "Montserrat", sans-serif;

    font-size: 14px;

    font-weight: 400;

    text-transform: none;

    transition: all 0.2s ease;
}

.login-input::placeholder {
    color: #ffffff;

    opacity: 1;

    font-family: "Montserrat", sans-serif;

    font-size: 12px;

    font-weight: 400;
}

.login-input:focus {
    border-color: #ffffff;

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

    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.login-input-icon {
    position: absolute;

    left: 12px;

    top: 50%;

    transform: translateY(-50%);

    width: 20px;

    color: #ffffff;

    font-size: 14px;

    z-index: 2;
}

/* ============================================================
   CAPTCHA
============================================================ */

.captcha-wrapper {
    width: 300px;

    height: 74px;

    margin-top: 0;

    margin-bottom: 33px;

    background: #fafafa;

    border-radius: 2px;

    overflow: hidden;

    display: flex;

    align-items: center;

    justify-content: flex-start;

    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/*
|--------------------------------------------------------------------------
| Google reCAPTCHA
|--------------------------------------------------------------------------
*/

.captcha-wrapper .g-recaptcha {
    transform: scale(1);

    transform-origin: 0 0;
}

/* Error */

.captcha-error {
    width: 300px;

    color: #ffcccc;

    font-size: 12px;

    margin-top: -25px;

    margin-bottom: 10px;
}

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

.login-button-wrapper {
    width: 300px;

    height: 45px;

    margin-top: 0;
}

.login-button {
    width: 300px;

    height: 45px;

    border: none;

    border-radius: 4px;

    background: #ffffff;

    color: #2148c0;

    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.3);

    font-family: "Montserrat", sans-serif;

    font-size: 16px;

    font-weight: 600;

    text-transform: uppercase;

    cursor: pointer;

    transition: all 0.2s ease;
}

.login-button:hover {
    background: #f4f6ff;

    transform: translateY(-1px);
}

.login-button:active {
    transform: translateY(0);
}

.login-button:disabled {
    opacity: 0.7;

    cursor: not-allowed;
}

/* ============================================================
   HIDE OLD TEMPLATE ELEMENTS
============================================================ */

#particles-js {
    display: none !important;
}

.main-page-content {
    width: 100% !important;

    height: 100% !important;

    position: static !important;
}

#home {
    width: 100% !important;

    height: 100% !important;

    min-height: 0 !important;

    background: transparent !important;
}

.home-content-main {
    width: 100% !important;

    height: 100% !important;

    display: block !important;
}

.table-cell {
    width: 100% !important;

    height: 100% !important;

    display: block !important;
}

/* ============================================================
   REMOVE OLD BOOTSTRAP SPACING
============================================================ */

.home-row {
    margin: 0 !important;
}

.home-text {
    padding: 0 !important;
}

/* ============================================================
   LOADING
============================================================ */

#loginLoading {
    position: fixed;

    inset: 0;

    background: rgba(7, 20, 41, 0.88);

    display: none;

    justify-content: center;

    align-items: center;

    z-index: 999999;

    backdrop-filter: blur(6px);
}

.loading-box {
    width: 340px;

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

    border-radius: 20px;

    padding: 35px;

    text-align: center;

    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
}

.loading-logo {
    width: 90px;

    height: 90px;

    object-fit: contain;

    margin-bottom: 20px;

    animation: pulseLogo 1.4s infinite ease-in-out;
}

.loading-box h4 {
    margin: 0;

    font-weight: 700;

    color: #0d47a1;

    font-size: 20px;
}

.loading-box h5 {
    margin-top: 5px;

    color: #555;

    font-size: 15px;

    font-weight: 600;
}

.loading-box p {
    margin-top: 20px;

    margin-bottom: 5px;

    font-weight: 600;

    color: #333;
}

.loading-box small {
    color: #777;
}

.loading-spinner {
    width: 50px;

    height: 50px;

    margin: 20px auto 0;

    border: 5px solid #dbe9ff;

    border-top: 5px solid #0d6efd;

    border-radius: 50%;

    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulseLogo {
    0% {
        transform: scale(0.95);
    }

    50% {
        transform: scale(1.08);
    }

    100% {
        transform: scale(0.95);
    }
}

/* ============================================================
   RESPONSIVE - LAPTOP
============================================================ */

@media (max-width: 1100px) {
    .login-content {
        width: 900px;
    }

    .login-left {
        width: 470px;
    }

    .brand-title {
        font-size: 32px;
    }
}

/* ============================================================
   TABLET
============================================================ */

@media (max-width: 900px) {
    .login-content {
        width: 100%;

        padding: 0 40px;

        box-sizing: border-box;
    }

    .login-left {
        width: calc(100% - 340px);
    }

    .login-doodle,
    .login-doodle img {
        width: 280px;

        height: auto;
    }

    .brand-title {
        width: 100%;

        font-size: 28px;
    }

    .login-brand-text {
        width: 100%;
    }
}

/* ============================================================
   MOBILE
============================================================ */

@media (max-width: 768px) {
    body {
        overflow-y: auto;
    }

    .login-page {
        min-height: 100vh;

        height: auto;

        overflow-y: auto;
    }

    .login-content {
        min-height: 100vh;

        height: auto;

        width: 100%;

        padding: 40px 20px;

        display: flex;

        flex-direction: column;

        justify-content: center;

        gap: 35px;
    }

    .login-left {
        width: 100%;

        height: auto;

        padding: 0;
    }

    .login-doodle,
    .login-doodle img {
        width: 250px;

        height: auto;
    }

    .login-brand-text {
        width: 100%;

        margin-top: 10px;
    }

    .brand-title {
        font-size: 25px;

        line-height: 0.95;

        text-align: center;
    }

    .brand-version {
        text-align: center;

        font-size: 14px;
    }

    .login-right {
        width: 300px;

        height: auto;

        margin: 0 auto;
    }

    .login-logos {
        margin-bottom: 20px;
    }

    .bg-circle-1 {
        width: 500px;

        height: 500px;

        right: -250px;

        top: -250px;
    }

    .bg-circle-2 {
        width: 390px;

        height: 390px;

        right: -195px;

        top: -195px;
    }

    .bg-circle-3 {
        width: 300px;

        height: 300px;

        right: -150px;

        top: -150px;
    }
}

/* ============================================================
   SMALL MOBILE
============================================================ */

@media (max-width: 400px) {
    .login-content {
        padding-left: 15px;

        padding-right: 15px;
    }

    .login-doodle,
    .login-doodle img {
        width: 210px;
    }

    .brand-title {
        font-size: 21px;
    }

    .login-right,
    .login-input-group,
    .login-input,
    .captcha-wrapper,
    .captcha-error,
    .login-button-wrapper,
    .login-button {
        width: 100%;
    }
}
