/* =========================================================
   BALI ASTERA
   AUTH / LOGIN PAGE
   FULLSCREEN VIDEO + FLOATING LOGIN CARD
   ========================================================= */


/* =========================================================
   RESET
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

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

html {
    overflow-x: hidden;
}

body {
    font-family: "DM Sans", sans-serif;

    background: #071d2e;
    color: #122544;

    overflow-x: hidden;
}


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

.ba-login-page {
    position: fixed;

    inset: 0;

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

    overflow: hidden;

    background: #071d2e;

    z-index: 9999;
}


/* =========================================================
   FULLSCREEN VIDEO
   ========================================================= */

.ba-login-video {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    overflow: hidden;

    background: #071d2e;

    z-index: 1;
}


/* =========================================================
   VIDEO
   ========================================================= */

.ba-login-video-bg {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center center;

    z-index: 1;
}


/* =========================================================
   VIDEO OVERLAY
   ========================================================= */

.ba-login-video-overlay {
    position: absolute;

    inset: 0;

    z-index: 2;

    pointer-events: none;

    background:
        linear-gradient(
            90deg,
            rgba(4, 24, 45, .82) 0%,
            rgba(4, 24, 45, .58) 38%,
            rgba(4, 24, 45, .25) 68%,
            rgba(4, 24, 45, .42) 100%
        );
}


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

.ba-login-brand {
    position: absolute;

    top: 55px;
    left: 70px;

    z-index: 5;

    display: flex;

    align-items: center;

    gap: 14px;

    color: #ffffff;
}


/* LOGO */

.ba-login-brand img {
    display: block;

    width: 58px;
    height: 58px;

    object-fit: contain;

    flex-shrink: 0;
}


/* BRAND TEXT */

.ba-login-brand > div {
    display: flex;

    flex-direction: column;

    gap: 5px;
}

.ba-login-brand strong {
    margin: 0;

    color: #ffffff;

    font-family: "DM Sans", sans-serif;

    font-size: 24px;

    line-height: 1;

    font-weight: 700;

    letter-spacing: -.03em;
}

.ba-login-brand span {
    color: #08b9df;

    font-size: 9px;

    font-weight: 700;

    letter-spacing: .28em;

    line-height: 1;
}


/* =========================================================
   HERO
   ========================================================= */

.ba-login-hero {
    position: absolute;

    left: 70px;
    bottom: 75px;

    width: min(650px, 45vw);

    color: #ffffff;

    z-index: 5;
}


/* BADGE */

.ba-login-badge {
    display: inline-flex;

    align-items: center;

    gap: 10px;

    padding: 13px 23px;

    border: 1px solid rgba(255, 255, 255, .45);

    border-radius: 999px;

    background: rgba(5, 25, 40, .28);

    backdrop-filter: blur(6px);

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 2px;
}

.ba-login-badge span {
    width: 9px;
    height: 9px;

    border-radius: 50%;

    background: #13b8d6;

    box-shadow:
        0 0 0 5px rgba(19, 184, 214, .15);

    flex-shrink: 0;
}


/* HERO TITLE */

.ba-login-hero h1 {
    margin: 38px 0 25px;

    color: #ffffff;

    font-family: "Playfair Display", serif;

    font-size: clamp(58px, 5vw, 82px);

    line-height: .94;

    font-weight: 700;

    letter-spacing: -3px;
}

.ba-login-hero h1 span {
    color: #08b9df;
}


/* HERO DESCRIPTION */

.ba-login-hero p {
    max-width: 650px;

    margin: 0;

    color: rgba(255, 255, 255, .88);

    font-size: 17px;

    line-height: 1.75;
}


/* HERO LINE */

.ba-login-line {
    width: 85px;
    height: 4px;

    margin-top: 32px;
    margin-bottom: 13px;

    background: #08b9df;
}

.ba-login-hero small {
    font-size: 11px;

    font-weight: 700;

    letter-spacing: 3px;

    color: rgba(255, 255, 255, .68);
}


/* =========================================================
   LOGIN CARD AREA
   FLOATING ABOVE FULLSCREEN VIDEO
   ========================================================= */

.ba-login-form-side {
    position: absolute;

    top: 50%;
    right: 5.5%;

    transform: translateY(-50%);

    width: 580px;

    max-width: calc(100vw - 80px);

    z-index: 20;

    display: flex;

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

    background: transparent;
}


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

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

    padding: 40px 42px 30px;

    background: rgba(255, 255, 255, .98);

    border: 1px solid rgba(255, 255, 255, .9);

    border-radius: 25px;

    box-shadow:
        0 30px 80px rgba(0, 0, 0, .25),
        0 10px 30px rgba(0, 0, 0, .12);

    backdrop-filter: blur(12px);
}


/* =========================================================
   FORM BADGE
   ========================================================= */

.ba-login-form-badge {
    display: inline-flex;

    align-items: center;

    min-height: 36px;

    padding: 0 16px;

    margin-bottom: 21px;

    border-radius: 999px;

    background: #e9f8fc;

    color: #08a9ce;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: .22em;
}


/* =========================================================
   FORM HEADER
   ========================================================= */

.ba-login-form-header {
    margin-bottom: 30px;
}

.ba-login-form-header h2 {
    margin: 0 0 8px;

    color: #122544;

    font-family: "Playfair Display", serif;

    font-size: 48px;

    line-height: 1;

    font-weight: 700;

    letter-spacing: -.04em;
}

.ba-login-form-header p {
    margin: 0;

    color: #718096;

    font-size: 14px;

    line-height: 1.55;
}


/* =========================================================
   ERROR
   ========================================================= */

.ba-login-error {
    margin-bottom: 20px;

    padding: 12px 14px;

    border: 1px solid #ffd2d2;

    border-radius: 10px;

    background: #fff6f6;

    color: #c53030;

    font-size: 13px;

    line-height: 1.5;
}


/* =========================================================
   FORM
   ========================================================= */

.ba-login-form {
    width: 100%;
}


/* =========================================================
   FORM GROUP
   ========================================================= */

.ba-form-group {
    width: 100%;

    margin-bottom: 18px;
}

.ba-form-group label {
    display: block;

    margin-bottom: 8px;

    color: #122544;

    font-size: 13px;

    font-weight: 700;
}


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

.ba-input-wrapper {
    position: relative;

    width: 100%;
}


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

.ba-input-icon {
    position: absolute;

    top: 50%;
    left: 17px;

    transform: translateY(-50%);

    display: flex;

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

    width: 20px;

    color: #8ba0b8;

    font-size: 15px;

    line-height: 1;

    pointer-events: none;

    z-index: 2;
}


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

.ba-input-wrapper input {
    display: block;

    width: 100%;
    height: 55px;

    margin: 0;

    padding: 0 55px 0 48px;

    border: 1px solid #dce6ee;

    border-radius: 12px;

    outline: none;

    background: #ffffff;

    color: #122544;

    font-family: "DM Sans", sans-serif;

    font-size: 14px;

    font-weight: 500;

    transition:
        border-color .25s ease,
        box-shadow .25s ease,
        background .25s ease;
}

.ba-input-wrapper input::placeholder {
    color: #a0b1c4;

    opacity: 1;
}

.ba-input-wrapper input:hover {
    border-color: #c7d6e3;
}

.ba-input-wrapper input:focus {
    border-color: #08b9df;

    background: #ffffff;

    box-shadow:
        0 0 0 4px rgba(8, 185, 223, .10);
}


/* =========================================================
   PASSWORD TOGGLE
   ========================================================= */

.ba-password-toggle {
    position: absolute;

    top: 50%;
    right: 9px;

    transform: translateY(-50%);

    width: 38px;
    height: 38px;

    display: flex;

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

    border: 0;

    border-radius: 9px;

    background: #f2f7fb;

    color: #7c93aa;

    cursor: pointer;

    font-size: 14px;

    transition:
        background .2s ease,
        color .2s ease;
}

.ba-password-toggle:hover {
    background: #e7f7fb;

    color: #08a9ce;
}


/* =========================================================
   REMEMBER ME
   ========================================================= */

.ba-login-options {
    display: flex;

    align-items: center;

    margin-top: 2px;
    margin-bottom: 20px;
}

.ba-login-options label {
    display: inline-flex;

    align-items: center;

    gap: 9px;

    cursor: pointer;

    color: #718096;

    font-size: 13px;

    font-weight: 500;
}

.ba-login-options input {
    appearance: none;
    -webkit-appearance: none;

    width: 18px;
    height: 18px;

    margin: 0;

    border: 1px solid #cbd8e4;

    border-radius: 5px;

    background: #ffffff;

    cursor: pointer;

    position: relative;
}

.ba-login-options input:checked {
    border-color: #08b9df;

    background: #08b9df;
}

.ba-login-options input:checked::after {
    content: "✓";

    position: absolute;

    left: 50%;
    top: 50%;

    transform: translate(-50%, -54%);

    color: #ffffff;

    font-size: 11px;

    font-weight: 700;
}


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

.ba-login-button {
    position: relative;

    display: flex;

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

    gap: 14px;

    width: 100%;
    height: 55px;

    padding: 0 25px;

    border: 0;

    border-radius: 12px;

    outline: none;

    background: #08b2d4;

    color: #ffffff;

    font-family: "DM Sans", sans-serif;

    font-size: 14px;

    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 15px 30px rgba(8, 178, 212, .20);

    overflow: hidden;

    transition:
        transform .25s ease,
        background .25s ease,
        box-shadow .25s ease;
}

.ba-login-button:hover {
    background: #079fc0;

    transform: translateY(-1px);

    box-shadow:
        0 18px 38px rgba(8, 178, 212, .26);
}

.ba-login-button span,
.ba-login-button strong {
    position: relative;

    z-index: 2;
}

.ba-login-button strong {
    font-size: 18px;

    font-weight: 500;

    line-height: 1;
}


/* =========================================================
   BACK HOME
   ========================================================= */

.ba-back-home {
    display: flex;

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

    gap: 10px;

    width: 100%;
    height: 50px;

    margin-top: 10px;

    border-radius: 11px;

    background: #f5f9fc;

    color: #122544;

    font-size: 13px;

    font-weight: 700;

    text-decoration: none;

    transition:
        background .25s ease,
        color .25s ease,
        transform .25s ease;
}

.ba-back-home span {
    font-size: 16px;
}

.ba-back-home:hover {
    background: #eaf7fb;

    color: #08a9ce;

    transform: translateY(-1px);
}


/* =========================================================
   SECURITY
   ========================================================= */

.ba-login-security {
    display: flex;

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

    gap: 8px;

    margin-top: 22px;

    padding-top: 18px;

    border-top: 1px solid #e7edf2;

    color: #9aabbb;

    font-size: 10px;

    text-align: center;
}

.ba-login-security span {
    font-size: 11px;
}


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

.ba-login-footer {
    margin-top: 14px;

    color: #9aabbb;

    font-size: 10px;

    line-height: 1.5;

    text-align: center;
}

.ba-login-footer strong {
    color: #647991;

    font-weight: 700;
}


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

@media (max-width: 1200px) {

    .ba-login-brand {
        left: 45px;
        top: 40px;
    }

    .ba-login-hero {
        left: 45px;
        bottom: 55px;

        width: min(600px, 48vw);
    }

    .ba-login-hero h1 {
        font-size: clamp(50px, 5vw, 70px);
    }

    .ba-login-form-side {
        right: 35px;

        width: 540px;

        max-width: calc(100vw - 70px);
    }

    .ba-login-card {
        padding: 36px 38px 28px;
    }

}


/* =========================================================
   SMALL DESKTOP / TABLET
   ========================================================= */

@media (max-width: 900px) {

    .ba-login-brand {
        top: 30px;
        left: 30px;
    }

    .ba-login-brand img {
        width: 50px;
        height: 50px;
    }

    .ba-login-brand strong {
        font-size: 20px;
    }

    .ba-login-hero {
        left: 30px;
        bottom: 40px;

        width: 52vw;
    }

    .ba-login-hero h1 {
        font-size: 52px;
    }

    .ba-login-hero p {
        font-size: 15px;
    }

    .ba-login-form-side {
        right: 20px;

        width: 480px;

        max-width: calc(100vw - 40px);
    }

    .ba-login-card {
        padding: 32px 30px 26px;
    }

    .ba-login-form-header h2 {
        font-size: 42px;
    }

}


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

@media (max-width: 820px) {

    body {
        overflow-y: auto;
    }

    .ba-login-page {
        position: relative;

        width: 100%;

        height: auto;
        min-height: 100vh;

        overflow: visible;
    }

    .ba-login-video {
        position: fixed;

        inset: 0;

        width: 100%;
        height: 100%;

        min-height: 100vh;
    }

    .ba-login-brand {
        top: 25px;
        left: 25px;
    }

    .ba-login-brand img {
        width: 45px;
        height: 45px;
    }

    .ba-login-brand strong {
        font-size: 18px;
    }

    .ba-login-brand span {
        font-size: 8px;

        letter-spacing: 2px;
    }

    .ba-login-hero {
        display: none;
    }

    .ba-login-form-side {
        position: relative;

        top: auto;
        right: auto;

        transform: none;

        width: 100%;

        min-height: 100vh;

        padding: 35px 20px;

        display: flex;

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

        background: transparent;
    }

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

        max-width: 480px;

        padding: 32px 26px 28px;

        border-radius: 22px;
    }

    .ba-login-form-header h2 {
        font-size: 40px;
    }

}


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

@media (max-width: 480px) {

    .ba-login-brand {
        top: 20px;
        left: 20px;
    }

    .ba-login-brand img {
        width: 42px;
        height: 42px;
    }

    .ba-login-brand strong {
        font-size: 16px;
    }

    .ba-login-brand span {
        font-size: 7px;
    }

    .ba-login-form-side {
        padding: 25px 15px;
    }

    .ba-login-card {
        padding: 28px 20px 24px;

        border-radius: 20px;
    }

    .ba-login-form-header {
        margin-bottom: 25px;
    }

    .ba-login-form-header h2 {
        font-size: 34px;
    }

    .ba-login-form-header p {
        font-size: 13px;
    }

    .ba-input-wrapper input {
        height: 53px;
    }

    .ba-login-button {
        height: 53px;
    }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {

        scroll-behavior: auto !important;

        transition-duration: .01ms !important;

        animation-duration: .01ms !important;

        animation-iteration-count: 1 !important;
    }

}