@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* Fredoka Font */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@300..700&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

body {
    font-family: Montserrat;
    background: linear-gradient(to bottom left, #fffacd 15%, white 15%, white 85%, #fffacd 85%);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}

.card {
    padding-top: 20px;
    padding-bottom: 20px;
    padding-left: 20px;
    padding-right: 20px;
    border: black 2px solid;
    border-radius: 20px;
}

.card .col-md-4 img {
    height: 100%; 
    width: auto; 
    object-fit: contain; 
}

/* Login and New Password */
.back-btn {
    position: absolute;
    left: 0px;
    background: none;
    border: none;
    font-size: 20px;
    color: black;
}

.back-btn i {
    font-size: 1.5rem;
    color: black;
}
.back-btn:hover {
    transform: scale(1.1);
    transition: 0.3s;
}

.loginLogo {
    background-color: #fdf9cf;
    border: black 2px solid;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: 10px;
    padding-right: 10px;
}

.page-lbl {
    text-align: center;
    font-family: Fredoka;
    font-size: 50px;
}

.loginField {
    margin-bottom: 20px;
    font-family: Montserrat;
}

.custom-text-field {
    /* font-weight: bold; */
    border: black 2px solid;
    border-radius: 20px;
}

.custom-text-field:focus {
    border-color: #fcfae7;
    box-shadow: 0 0 0 0.2rem #fdf9cf; /* Optional: Light blue shadow */
}

.passwordMessage {
    font-size: 20px;
    margin-bottom: 20px;
}

.forgotPassword {
    font-family: Montserrat;
}

.forgotPassword a {
    text-decoration: none;
    color: black;
}

.submit-btn {
    background-color: #fdf9cf;
    color: black;
    font-family: Montserrat;
    border: black 2px solid;
    border-radius: 20px;
    padding-left: 40px;
    padding-right: 40px;
    margin-top: 10px;
}

.submit-btn:hover {
    background-color: black;
    border: black 2px solid;
}

.submit-btn:active {
    transform: scale(0.9);
    background-color: black !important;
    border: none;
}

/* Code Verification */
.otpMessage {
    font-size: 18px;
    margin-bottom: 10px;
}

/* Forgot Password and Forgot Pin */
.emailMessage {
    font-size: 20px;
    margin-bottom: 20px;
}

/* Password Changed and PIN Changed */
.completeMessage {
    font-size: 20px;
    margin-bottom: 20px;
}

/* New PIN */
.key {
    color: black !important;
}

.newPin {
    font-size: 18px;
    /* margin-bottom: 10px; */
    text-align: center;
}

.pin-input {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.pin-input input {
    width: 30px;
    height: 50px;
    text-align: center;
    font-size: 24px;
    border: none;
    border-bottom: 2px solid #000;
    outline: none;
    background: none;
}

@media (max-width: 768px) {
    .pin-input input {
        width: 25px;
        height: 40px;
        font-size: 20px;
    }

    .card {
        max-width: 90%;
    }

    .newPin {
        font-size: 14px;
    }

    .submit-btn {
        font-size: 14px;
        padding: 10px 15px;
    }
}

@media (max-width: 576px) {
    .pin-input input {
        width: 20px;
        height: 35px;
        font-size: 18px;
    }

    .newPin {
        font-size: 12px;
    }
}

/* Sweet Alert */
.custom-swal-popup {
    border: 2px solid black;
    background-color: #fcfae7;
    color: black;
}

.custom-swal-button {
    background-color: #fdf9cf !important; 
    color: black !important;
    border: 2px solid black !important; 
    padding: 10px 20px !important; 
    font-size: 16px !important; 
    border-radius: 5px !important; 
}

.custom-swal-button:hover {
    transform: scale(1.1);
}

.custom-swal-button:focus {
    outline: none !important; 
    box-shadow: none !important;
}

.swal2-popup {
    z-index: 10000 !important;
}

.swal2-container {
    pointer-events: auto !important; /* Ensure clicks are captured by the modal */
}

.swal2-popup {
    pointer-events: auto !important; /* Prevents accidental clicks inside */
}

body.swal2-shown {
    pointer-events: none !important; /* Prevents clicks outside the Swal */
}

body.swal2-shown .swal2-container {
    pointer-events: auto !important; /* Allows Swal itself to remain interactive */
}
