﻿body {
    background-color: #F6F6F6;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    font-family: Nunito, sans-serif;
}

.header {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
}

    .header img {
        width: 50px;
        height: 60px;
        flex-shrink: 0;
    }

    .header h2 {
        color: #526EF4;
        font-weight: 600;
        margin: 0;
        white-space: nowrap;
        font-family: 'Nunito', sans-serif; /* Changed to Nunito */
    }

.login-container {
    max-width: 1100px;
    height: 480px;
    width: 100%;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0px 0px 12px #526ef37a;
    overflow: hidden;
    display: flex;
    position: relative;
}
/*.login-container h4{
    font-weight:500;
}*/
.login-form, .verification-form {
    padding: 40px;
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.illustration {
    padding: 40px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

    .illustration img {
        width: 100%;
        height: auto;
        max-height: 450px;
    }

.login-container::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50px;
    bottom: 50px;
    width: 1px;
    background-color: #00000033;
}

.form-label {
    font-size: 0.9rem;
    color: #6c757d;
    display: flex;
    align-items: center;
}

    .form-label .required-star {
        color: red;
        margin-left: 4px;
    }

.input-group-text {
    background-color: #fff;
    border-right: 0;
    border-radius: 8px 0 0 8px;
    padding: 0.75rem;
}

.form-control {
    border-radius: 0 8px 8px 0;
    border-left: 0;
    padding: 0.75rem 1rem;
    font-size: 1.1rem;
    outline: none;
}

    .form-control:focus {
        border-color: #526EF4;
        box-shadow: none;
    }

.input-group {
    margin-bottom: 1rem;
    border: 1px solid #ced4da;
    border-radius: 8px;
    overflow: hidden;
}

    .input-group:focus-within {
        border-color: #526EF4;
    }

.error-msg {
    color: red;
    font-size: 0.9rem;
    margin-top: 5px;
    display: flex;
    align-items: center;
}

    .error-msg img {
        width: 16px;
        height: 16px;
        margin-right: 5px;
    }

.input-group.has-invalid {
    border-color: red !important;
}

    .input-group.has-invalid .form-control {
        border-color: red !important;
        background-image: none !important;
    }

    .input-group.has-invalid .input-group-text {
        border-color: red !important;
    }

.server-error {
    background-color: red;
    color: white;
    padding: 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .server-error img {
        width: 16px;
        height: 16px;
        margin-right: 8px;
    }

.verification-code {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

    .verification-code input {
        width: 50px;
        height: 50px;
        text-align: center;
        font-size: 1.5rem;
        border: 1px solid #ced4da;
        border-radius: 8px;
        outline: none;
    }

        .verification-code input:focus {
            border-color: #526EF4;
        }

.code-input.invalid {
    border-color: red !important;
}

.resend-text {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: black;
}

    .resend-text a {
        color: #526EF4;
        text-decoration: none;
    }

.btn-primary {
    background-color: #526EF4;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1.1rem;
    cursor: pointer;
}

.back-arrow {
    cursor: pointer;
    width: 30px;
    height: 30px;
}

    .back-arrow.disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

.verification-form h4 {
    margin-top: 40px;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
    box-shadow: 0 0 0 30px white inset !important;
    background-color: white !important;
}

@media (max-width: 768px) {
    .login-container {
        max-width: 90%;
        height: auto;
        flex-direction: column;
    }

    .illustration {
        display: none;
    }

    .login-form, .verification-form {
        padding: 20px;
    }

    .login-container::before {
        display: none;
    }

    .header {
        left: 50%;
        transform: translateX(-50%);
        text-align: center;
    }

        .header img {
            width: 35px;
            height: 35px;
        }

        .header h2 {
            font-size: 1.1rem;
            font-family: 'Nunito', sans-serif; /* Changed to Nunito */
        }

    .back-arrow {
        top: 10px;
        left: 10px;
        width: 18px;
        height: 18px;
    }

    .verification-form h4 {
        margin-top: 35px;
    }
}

@media (max-width: 576px) {
    .header {
        left: 50%;
        transform: translateX(-50%);
        text-align: center;
    }

        .header img {
            width: 35px;
            height: 35px;
        }

        .header h2 {
            font-size: 2rem;
            font-family: 'Nunito', sans-serif; /* Changed to Nunito */
        }

    .back-arrow {
        top: 8px;
        left: 8px;
        width: 16px;
        height: 16px;
    }

    .verification-form h4 {
        margin-top: 30px;
        font-size: 1.25rem;
    }
}
/* Add these new styles */
.no-validate {
    background-image: none !important; /* Prevents Bootstrap validation icons */
}
