/* ================= AUTH (LOGIN & REGISTER) ================= */


/* BODY FULL HEIGHT & NO SCROLL */
body {
    padding-top: 70px;
    /* overflow-y: hidden;  */
    display: flex;
    flex-direction: column;
}

/* WRAPPER AGAR LOGIN NAIK */
.login-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    margin-top: -20px; /* Naikkan sedikit */
}

/* CONTAINER FORM */
.auth-container {
    max-width: 460px;
    margin: 20px auto; /* Lebih naik dari sebelumnya */
    background: #ffffff;
    padding: 30px 28px;
    border-radius: 18px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.10);
    position: relative;
}

/* AKSEN ATAS */
.auth-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 6px;
    width: 100%;
    background: linear-gradient(90deg, #1e40af, #2563eb);
    border-radius: 18px 18px 0 0;
}

/* FORM GROUP */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 6px;
    display: block;
}

.form-group input {
    width: 100%;
    padding: 13px 14px;
    border-radius: 10px;
    border: 1.6px solid #c7d2fe;
    outline: none;
    font-size: 14px;
    transition: 0.2s ease;
}

.form-group input:focus {
    border-color: #1e40af;
    box-shadow: 0 0 0 3px rgba(30,64,175,0.15);
}

/* BUTTON */
.btn-auth {
    width: 100%;
    padding: 13px;
    background: linear-gradient(90deg, #1e40af, #2563eb);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    margin-top: 8px;
    transition: 0.2s ease;
}

.btn-auth:hover {
    opacity: 0.95;
    transform: translateY(-1px);
}

/* FOOTER FIX DI BAWAH */
footer {
    background-color: #E5EDFF;
    text-align: center;
    padding: 20px;
    color: #334155;
    font-size: 14px;
    border-top: 1px solid #BFDBFE;
}

/* ================= REGISTER LEBIH LEBAR ================= */

.register-box {
    max-width: 520px;
}

/* Kotak Error Login */
.error-box{
    width: fit-content;
    min-width: 100px;

    margin: 15px auto 25px;

    padding: 10px 20px;

    background: #FEE2E2;
    border: 2px solid #EF4444;
    border-radius: 12px;

    color: #B91C1C;
    font-size: 15px;
    font-weight: 600;
    text-align: center; 
    box-sizing: border-box;
}


/* ================= RESPONSIVE LOGIN HP ================= */
/* ================= RESPONSIVE LOGIN HP ================= */
@media (max-width: 768px){

    body{
        padding-top: 60px !important;
    }

    /* navbar */
    .navbar-brand{
        font-size: 18px !important;
    }

    .navbar-nav{
        text-align: center !important;
        margin-top: 15px !important;
    }

    .nav-link{
        margin: 6px 0 !important;
    }

    .auth-nav-buttons{
        flex-direction: column !important;
        gap: 10px !important;
        margin-top: 15px !important;
        width: 100% !important;
    }

    .auth-nav-buttons .btn{
        width: 100% !important;
        margin-right: 0 !important;
    }

    .navbar-toggler{
        border-color: rgba(255,255,255,0.3) !important;
    }

    .navbar-toggler:focus{
        box-shadow: none !important;
    }

    .navbar-toggler-icon{
        filter: brightness(0) invert(1) !important;
    }

    /* === RESET GRID BOOTSTRAP UNTUK HALAMAN LOGIN === */
    /* Kode ini memaksa container pembungkus grid Bootstrap ikut mengecil di HP */
    .container, 
    .row, 
    [class*="col-"] {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* === PERBAIKAN TOTAL BOX LOGIN & REGISTER === */
    .login-wrapper {
        margin-top: 0 !important;
        padding: 30px 0 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
    }

    /* Memaksa box putih login melebar 90% dari layar HP */
    .auth-container, 
    .register-box {
        width: 90% !important;
        max-width: 90% !important;
        min-width: 90% !important;
        margin: 20px auto !important;
        padding: 25px 20px !important;
        border-radius: 14px !important;
        box-shadow: 0 15px 35px rgba(0,0,0,0.08) !important;
        float: none !important; /* Menghindari bug layout mengambang */
    }

    .auth-title {
        font-size: 22px !important;
        text-align: center !important;
    }

    .form-group label {
        font-size: 12px !important;
    }

    .form-group input {
        padding: 11px 12px !important;
        font-size: 14px !important;
    }

    .btn-auth {
        padding: 12px !important;
        font-size: 14px !important;
        border-radius: 10px !important;
    }

    .auth-footer {
        font-size: 13px !important;
        text-align: center !important;
    }

    /* Menghilangkan visual kolom ilustrasi jika ada */
    .col-lg-6.d-none.d-lg-flex {
        display: none !important;
    }

    /* Penyesuaian Footer */
    footer {
        padding: 14px !important;
        font-size: 13px !important;
        width: 100% !important;
    }
    
}