/* =========================================================
   AL GHAZALY SYSTEM - FULL SCREEN LOGIN (UPDATED TEAL THEME)
========================================================= */

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    background: #e6f3f0;
    color: #2d3e43;
}

/* =========================================================
   FULL SCREEN PAGE
========================================================= */

.auth-page {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: radial-gradient(
        circle at 0% 0%,
        rgba(49, 153, 138, 0.2),
        transparent 40%
    ), #e6f3f0;
}

/* =========================================================
   MAIN CONTAINER
========================================================= */

.auth-container {
    width: 100%;
    height: calc(100vh - 36px);
    min-height: 600px;
    display: flex;
    overflow: hidden;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 25px 70px rgba(31, 120, 107, 0.15);
}

/* =========================================================
   LEFT PANEL (MATCHING NAVBAR GRADIENT & VECTORS)
========================================================= */

.auth-left {
    position: relative;
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Gradient yang sama dengan Navbar */
    background: linear-gradient(
        135deg,
        #217f73 0%,
        #299688 35%,
        #3ca393 70%,
        #4bb4a3 100%
    );
}

/* Hapus pseudoelemen lama agar tidak bentrok */
.auth-left::before,
.auth-left::after {
    display: none;
}

/* =========================================================
   BACKGROUND VECTORS (DESAIN NAVBAR)
========================================================= */

.navbar-vector {
    position: absolute;
    display: block;
    pointer-events: none;
}

/* 1. Dark Green Blob */
.vector-blob {
    width: 380px;
    height: 200px;
    left: -80px;
    bottom: -90px;
    background: rgba(18, 92, 83, 0.35);
    border-radius: 50% 50% 40% 60% / 60% 40% 60% 40%;
    transform: rotate(-10deg);
}

/* 2. Outline Circle */
.vector-circle-outline {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    top: 5px;
    left: 8%;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.22);
}

/* 3. Dot Pattern */
.vector-dots {
    width: 100px;
    height: 60px;
    left: 10%;
    bottom: 12%;
    background-image: radial-gradient(
        rgba(255, 255, 255, 0.35) 2px,
        transparent 2px
    );
    background-size: 18px 16px;
    opacity: 0.8;
}

/* 4. Rounded Pill */
.vector-pill {
    width: 420px;
    height: 130px;
    right: -100px;
    top: 35%;
    border-radius: 70px;
    background: rgba(255, 255, 255, 0.12);
    transform: rotate(-18deg);
}

/* 5. Second Circle */
.vector-circle-2 {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    bottom: 20px;
    right: 20%;
    background: rgba(255, 255, 255, 0.08);
}

/* 6. Large White Circle */
.vector-circle-1 {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    top: -120px;
    right: -80px;
    background: rgba(255, 255, 255, 0.12);
}

/* =========================================================
   LEFT CONTENT & TYPOGRAPHY
========================================================= */

.auth-left-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 480px;
    padding: 40px;
    text-align: center;
}

.left-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 25px;
    color: #ffffff;
    font-size: 14px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.left-logo strong {
    color: #ffffff;
    font-weight: 700;
}

.left-logo-icon {
    color: #ffffff;
    font-size: 20px;
}

/* =========================================================
   ILLUSTRATION (UPDATED COLORS & SHADOWS)
========================================================= */

.auth-illustration {
    position: relative;
    width: 320px;
    height: 280px;
    margin: 0 auto 20px;
}

.illustration-circle {
    position: absolute;
    width: 250px;
    height: 250px;
    left: 35px;
    top: 15px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
}

.student {
    position: absolute;
    left: 110px;
    top: 75px;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ffffff;
    color: #217f73;
    font-size: 52px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

/* Floating Icons Adjustment */
.floating-icon {
    position: absolute;
    z-index: 5;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: #217f73;
    font-size: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.icon-book {
    left: 20px;
    top: 110px;
}

.icon-calculator {
    right: 138px;
    top: 0;
}

.icon-graduation {
    right: 20px;
    bottom: 110px;
}

.icon-laptop, .laptop {
    left: 138px;
    bottom: 10px;
}

/* Deskripsi Teks di Panel Kiri */
.left-description h1 {
    margin: 0 0 10px;
    font-size: 26px;
    font-weight: 700;
    color: #ffffff;
}

.left-description p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.88);
}

/* Dots Indicator */
.auth-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    margin-top: 22px;
}

.auth-dots span {
    display: block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
}

.auth-dots span.active {
    width: 22px;
    border-radius: 10px;
    background: #ffffff;
}

/* =========================================================
   RIGHT PANEL & FORM (SEALED COLORS)
========================================================= */

.auth-right {
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 80px;
    background: #ffffff;
}

.auth-form-wrapper {
    width: 100%;
    max-width: 380px;
}

.logo-icon {
    color: #299688;
}

.logo-text strong {
    color: #299688;
}

.auth-input:focus {
    border-color: #3ca393 !important;
    box-shadow: 0 0 0 3px rgba(60, 163, 147, 0.15) !important;
}

.forgot-password-wrapper a,
.register-text a {
    color: #299688;
}

.auth-login-button {
    width: 100%;
    height: 48px;
    border: none !important;
    border-radius: 6px !important;
    background: #217f73 !important;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-login-button:hover {
    background: #196359 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(33, 127, 115, 0.25);
}

/* =========================================================
   PASSWORD & TOGGLE BUTTON FIX
========================================================= */

.input-wrapper {
    position: relative !important;
    display: flex;
    align-items: center;
    width: 100%;
}

.password-input {
    padding-right: 45px !important;
}

.password-toggle {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    
    padding: 0 !important;
    width: 30px !important;
    height: 30px !important;
    
    border: none !important;
    background: transparent !important;
    outline: none !important;
    box-shadow: none !important;
    
    color: #929e9c !important;
    cursor: pointer;
    z-index: 5;
    transition: color 0.2s ease;
}

.password-toggle:hover,
.password-toggle:focus {
    color: #217f73 !important;
    background: transparent !important;
    outline: none !important;
}

.password-toggle i {
    font-size: 15px;
    line-height: 1;
}

/* =========================================================
   MOBILE RESPONSIVE FIX & HEADER BACKGROUND
========================================================= */

@media (max-width: 767px) {
    .auth-page {
        padding: 0 !important;
        align-items: stretch !important;
        background: #e6f3f0 !important;
    }

    .auth-container {
        width: 100% !important;
        height: auto !important;
        min-height: 100vh !important;
        flex-direction: column !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    /* 1. Header Background Mobile (Menampilkan Vektor & Gradient) */
    .auth-left {
        width: 100% !important;
        height: 180px !important;
        min-height: 180px !important;
        padding: 20px 15px !important;
    }

    /* Sembunyikan ilustrasi tengah di mobile agar ringkas */
    .auth-illustration, 
    .auth-dots,
    .left-description p {
        display: none !important;
    }

    .auth-left-content {
        padding: 0 !important;
    }

    .left-logo {
        margin-bottom: 8px !important;
    }

    .left-description h1 {
        font-size: 20px !important;
        margin: 0 !important;
    }

    /* Penyesuaian Posisi Vektor di Mobile Header */
    .vector-blob {
        width: 250px !important;
        height: 120px !important;
        left: -50px !important;
        bottom: -40px !important;
    }

    .vector-pill {
        width: 280px !important;
        height: 80px !important;
        right: -60px !important;
        top: 10px !important;
    }

    .vector-circle-1 {
        width: 180px !important;
        height: 180px !important;
        top: -80px !important;
        right: -40px !important;
    }

    .vector-circle-outline {
        width: 100px !important;
        height: 100px !important;
        left: 5% !important;
        top: -30px !important;
    }

    /* 2. Form Panel Fix */
    .auth-right {
        width: 100% !important;
        height: auto !important;
        padding: 30px 20px 40px !important;
        background: #ffffff !important;
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
        margin-top: -15px; /* Overlap halus dengan header */
        position: relative;
        z-index: 3;
    }

    .auth-form-wrapper {
        max-width: 100% !important;
    }

    /* Fix reCAPTCHA Overflow di HP */
    .captcha-wrapper,
    .g-recaptcha,
    .g-recaptcha > div {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto;
    }
}