﻿.gradient-custom-2 {
    background: #fccb90;
    background: -webkit-linear-gradient(to right, #ee7724, #d8363a, #dd3675, #b44593);
    background: linear-gradient(to right, #ee7724, #d8363a, #dd3675, #b44593);
}

@media (min-width: 768px) {
    .gradient-form {
        height: 100vh !important;
    }
}

@media (min-width: 769px) {
    .gradient-custom-2 {
        border-top-right-radius: .3rem;
        border-bottom-right-radius: .3rem;
    }
}

/*----------------------------------------------------------------*/
/*html, body {
    overflow: hidden;*/ /* 🔒 hentikan scroll */
/*}

   body {
        background-image: url('/Images/Backdrop.png');*/ /*ubah ikut laluan anda */
/*background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
    }

    body::before {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(255, 255, 255, 0.4);
        z-index: -1;
    }

    .login-section {
        background-color: white;
        padding: 30px 40px;
        border-radius: 10px;
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
        max-width: 450px;
        margin-left: 60px;
        margin-top: 25px;
    }

    .login-section input,
    .login-section label,
    .login-section button,
    .login-section p,
    .login-section a {
        margin-bottom: 15px;
    }*/

/* ✅ Responsif untuk mobile: pusatkan container */
/*@media (max-width: 768px) {
        .login-section {
            margin: 60px auto;
        }
    }


.custom-btn {
    background-color: #e91e63;
    color: white;
    padding: 8px 20px;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    width: auto;*/ /* atau tukar kepada 50% jika nak separuh */
/*min-width: 300px;
    transition: background-color 0.3s ease;
}

    .custom-btn:hover {
        background-color: hotpink;
        color : white;
    }*/



html, body {
    overflow: hidden;
    height: 100%;
    margin: 0;
    padding: 0;
}

/* ✅ Bila tinggi skrin kurang dari 700px, benarkan scroll */
@media (max-height: 700px) {
    html, body {
        overflow: auto;
    }
}

/* ✅ Bila lebar skrin kecil (contoh < 768px), juga benarkan scroll */
@media (max-width: 768px) {
    html, body {
        overflow: auto;
    }
}

body {
    background: url('/2026/Images/background.jpeg') no-repeat center center fixed;
    background-size: cover;
    position: relative;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

    body::before {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(255,255,255,0.6); /* putih separa lutsinar */
        z-index: -1; /* pastikan dia bawah content */
    }


/* 🔧 Layout pembungkus */
.login-page-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    /*padding-top: 40px;*/
    padding-bottom: 80px; 
    gap: 40px;
    box-sizing: border-box;
}

.welcome-panel {
    max-width: 400px;
    /*color: #2c3e50;*/
    text-align: start;
}

    .welcome-panel h1 {
        font-size: 3rem;
        font-weight: 700;
        color: black; /* Biru korporat */
        text-shadow: 2px 2px 4px #fff; /* shadow halus */
        margin-bottom: 10px;
    }

    .welcome-panel p {
        font-size: 1rem;
        color: black;
        font-weight: 400; /* semi-bold */
    }

.login-section {
    background-color: white;
    padding: 30px 50px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    max-width: 450px;
    width: 100%;
    margin-bottom: 20px; /* ✅ beri ruang bawah */
}

.register-section {
    background-color: white;
    padding: 30px 25px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 100%;
    margin-bottom: 20px; /* ✅ beri ruang bawah */
}

.login-section input,
.login-section label,
.login-section button,
.login-section p,
.login-section a {
    margin-bottom: 9px;
}

.daftar-section {
    background-color: white;
    padding: 30px 50px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    margin-bottom: 20px; /* ✅ beri ruang bawah */
}

    .daftar-section input,
    .daftar-section label,
    .daftar-section button,
    .daftar-section p,
    .daftar-section a {
        margin-bottom: 9px;
    }

.custom-btn {
    background-color: #003366;
    color: white;
    padding: 8px 20px;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    min-width: 200px;
    transition: background-color 0.3s ease;
}

    .custom-btn:hover {
        background-color: #0099cc;
        color: white;
    }

.btn-primary {
    color: #fff;
    background-color: #003366;
    border-color: white;
    border-radius: 6px;
    height: 36px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

    .btn-primary:hover {
        background-color: #0099cc; /* lebih gelap sedikit */
        color: #fff;
        border-color: white;
    }

.btn-secondary {
    color: black;
    background-color: #E91E63;
    background-color: white;
    border: 1px solid #E91E63;
    border-radius: 6px;
    height: 36px;
    transition: background-color 0.3s ease, color 0.3s ease, border 0.3s ease;
}

    .btn-secondary:hover {
        background-color: #87a0c5;
        color: white;
        border-color: #87a0c5;
    }


/* 📱 Responsif Mobile */
@media (max-width: 768px) {
    .login-page-wrapper {
        flex-direction: column;
        align-items: center;
        padding: 40px 20px;
    }

    .welcome-panel {
        margin-bottom: 30px;
        text-align: center;
    }

    .login-section {
        margin: 0 auto;
        width: 100%;
        max-width: 400px;
    }
}

.register-section.daftar-akaun-scroll {
    overflow-y: auto;
    max-height: 90vh;
}


.error-wrapper {
    background-color: rgba(255, 255, 255, 0.4); /* lapisan separa transparent */
}

.error-card {
    animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
