﻿.close:not(:disabled):not(.disabled):hover, .close:not(:disabled):not(.disabled):focus {
    opacity: .75;
}

.modal .modal-dialog .close {
    top: 0;
    position: absolute;
    right: 0;
    height: 36px;
    width: 36px;
    background-color: #313a46;
    opacity: 1;
    border: 2px solid #fff;
    text-shadow: none;
    color: #fff;
    border-radius: 50%;
    padding: 0;
}

body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient( to bottom, #B8F2E6 0%, #C3ECE9 25%, #CFE5E5 50%, #DADFEF 75%, #E5D9F2 100% );
    font-family: Arial, sans-serif;
}

.signin-btn {
    background-color: #3b3b3b;
    color: #fff;
}

    .signin-btn:hover {
        background-color: #2a2a2a;
        color: #fff;
    }

.right-img {
    background: url('image.jpg') no-repeat center center;
    background-size: cover;
}

.logo {
    width: 120px;
    margin-bottom: 15px;
}

.container-fluid {
    width: 80%;
    margin-left: 8rem;
    background: rgba(255, 255, 255, 0.25);
    margin-top: 3rem;
    height: 34rem;
    border-radius: 1.5rem;
}



.login-input {
   
    width: 25rem !important;
    height: 3.2rem;
    border: none;
    border-radius: 7px;
    margin-left: 5rem;
    margin-top: 1rem;
    background-color: #fff;
    text-align: center; /* Horizontal center */
    display: flex;
    align-items: center; /* Vertical center */
    justify-content: center; /* Extra ensure horizontal centering */
    font-size: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    outline: none;
}
 .login-input::placeholder {
        color: #999;
        text-align: center;
    }
.signin-btn {
    width: 25rem;
    height: 3.2rem;
    margin-left: 4rem;
    margin-top: 2rem;
    border-radius: 7px;
    border: none;
    background-color: #3b3b3b;
    color: #fefefe;
    font-size: 1.1rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    cursor: pointer;
}
.text-danger {
    display: none;
}


/* 📱 Tablet View (up to 1024px) */
@media (max-width: 1024px) {
    .container-fluid {
        width: 95% !important;
        margin: 2rem auto !important;
        height: auto !important;
        padding: 2rem !important;
        border-radius: 1.5rem !important;
    }

    .row {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    /* 🧩 Make left section (form) appear first */
    .col-md-6.d-flex {
        order: 1 !important;
    }

    /* 🧩 Make right section (image) appear after form */
    .right-img {
        order: 2 !important;
        display: flex !important;
        justify-content: center !important;
        margin-top: 2rem !important;
    }

        .right-img img {
            margin: 0 auto !important;
            height: auto !important;
            width: 75% !important;
        }

    h1, p {
        margin-left: 0 !important;
        text-align: center !important;
    }

    .login-input,
    .signin-btn {
        width: 90% !important;
        margin: 1rem auto !important;
        display: block !important;
    }

    .signin-btn {
        margin-top: 1.5rem !important;
    }
}

/* 📲 Mobile View (up to 768px) */
@media (max-width: 768px) {
    .container-fluid {
        width: 95% !important;
        margin: 1rem auto !important;
        padding: 1.5rem !important;
        height: auto !important;
        border-radius: 1rem !important;
    }

    .row {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    /* 🧩 Ensure form is on top */
    .col-md-6.d-flex {
        order: 1 !important;
    }

    /* 🧩 Ensure image comes below */
    .right-img {
        order: 2 !important;
        display: flex !important;
        justify-content: center !important;
        margin-top: 2rem !important;
    }

        .right-img img {
            width: 85% !important;
            height: auto !important;
            margin: 0 auto !important;
        }

    h1 {
        font-size: 1.8rem !important;
        margin: 1rem 0 !important;
        text-align: center !important;
    }

    p {
        font-size: 0.95rem !important;
        margin: 0.5rem 0 1rem 0 !important;
        text-align: center !important;
    }

    .login-input,
    .signin-btn {
        width: 100% !important;
        height: 3rem !important;
        margin: 0.8rem auto !important;
        font-size: 1rem !important;
    }

    .signin-btn {
        margin-top: 1.2rem !important;
    }
}





.open-form {
    text-decoration: underline;
    cursor: pointer;
    color: blue;
    margin-left: 10px;
}
.open-form:hover {
 text-decoration-thickness: 2px;
}





/* Modal covers full screen */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.45);
    justify-content: center;
    align-items: flex-end;
    backdrop-filter: blur(5px);
    overflow: hidden;
    z-index: 9999;  <-- ADD THIS 
}

.form-row label {
    color: #3b3b3b;
    font-size: 16px;
    font-weight: 500 !important;
    margin-bottom: 6px;
    display: block;
    margin-left: 1.5rem;
    margin-top: 1rem;
}

.form-control {
            width: 80%;
            margin-left: 4rem;
    background: #fafafa;
}

.form-row div {
    display: flex;
    flex-direction: column;
}


/* Modal box full height */
.modal-box {
    width: 95%;
    height: 93vh;  
    background: #fff;
    border-radius: 22px 22px 0 0;
    overflow: hidden;
    transform: translateY(120%);
    transition: 0.55s cubic-bezier(.22,.61,.36,1);
}

/* Content scroll inside modal */
.modal-content {
    height: 100%;  ⬅ Required 
    overflow-y: auto;  ⬅ Now content scrolls 
    padding: 40px 50px;
}


.modal-overlay.active {
    display: flex;
}

    .modal-overlay.active .modal-box {
        transform: translateY(0);
    }


.modal-content {
    width: 100%;
    padding: 36px 44px;
    overflow-y: auto;
}

    .modal-content h1 {
        font-size: 30px;
        margin: 0 0 12px 0;
        margin-left: 1.5rem;
/*         font-family: 'Montserrat'; */
        color: #3b3b3b;
/*        font-weight: 500;*/
        margin-top: 2rem;
    }

.section-title {
    margin-top: 18px;
    margin-bottom: 14px;
    font-weight: 600;
    font-size: 18px;
    border-bottom: 2px solid #eee;
    padding-bottom: 6px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 14px;
}

    .form-row.single input {
        grid-column: span 2;
    }

    .form-row input,
    .form-row select,
    .form-row textarea {
        width: 84%;
        padding: 12px 14px;
        border-radius: 10px;
        border: 1px solid #d0d0d0;
        font-size: 15px;
         background: #fff; 
        box-sizing: border-box;
        height: 3rem;
        margin-left: 1.7rem;
        color: #3b3b3b;
    }

.next-btn {
    margin-top: 18px;
    background: #1A73E8;
    color: #fff;
    padding: 12px 26px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    font-size: 15px;
}

 
.close-modal {
    position: absolute;
    right: 46px;
    top: 17px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f1f1;
    cursor: pointer;
    font-size: 18px;
    z-index: 20;
    border: none;
}
 
.modal-footer {
    padding: 14px 44px 30px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid #f0f0f0;
    border: none;
}






