/* Google Fonts Link */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

/* Resetting default styling and setting font-family */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif;
    box-sizing: border-box;
}

body {
    width: 100%;
    min-height: 100vh;
    padding: 0;
    display: flex;
    background: url('../images/LoginBGBlurFixed.png') no-repeat center center fixed;
    background-size: cover;
    justify-content: center;
    align-items: center;
}

/* Login form styling */
.login_form {
    width: 100%;
    max-width: 435px;
    background: #fff;
    border-radius: 26px;
    margin-top: 150px;
    padding: 41px 30px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.login_form h3 {
    font-size: 20px;
    text-align: center;
    margin-bottom: 20px;
}

/* Google & Apple button styling */

.login_form .login_option {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
}

.login_form .login_option .option {
    width: calc(100% / 2 - 12px);
}

.login_form .login_option .option a {
    height: 56px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    background: #F8F8FB;
    border: 1px solid #DADAF2;
    border-radius: 5px;
    margin: 34px 0 24px 0;
    text-decoration: none;
    color: #171645;
    font-weight: 500;
    transition: 0.2s ease;
}

.login_form .login_option .option a:hover {
    background: #ededf5;
    border-color: #AB6886;
}

.login_form .login_option .option a img {
    max-width: 25px;
}

.login_form p {
    text-align: center;
    font-weight: 500;
}

.login_form .separator {
    position: relative;
    margin-bottom: 24px;
}

/* Login option separator styling */
.login_form .separator span {
    background: #fff;
    z-index: 1;
    padding: 0 10px;
    position: relative;
}

.login_form .separator::after {
    content: '';
    position: absolute;
    width: 100%;
    top: 50%;
    left: 0;
    height: 1px;
    background: #C2C2C2;
    display: block;
}

/* Newly added flex styling for side-by-side inputs */
form .row-inputs {
    display: flex;
    gap: 10px;
    width: 100%;
}
form .row-inputs .input_box {
    flex: 1;
}

form .input_box label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 14px;
}

/* Input field styling */
form .input_box input {
    width: 100%;
    height: 57px;
    border: 1px solid #DADAF2;
    border-radius: 15px;
    outline: none;
    background: #F8F8FB;
    font-size: 15px; /* Scaled down slightly to fit side-by-side nicely */
    padding: 0px 15px;
    margin-bottom: 25px;
    transition: 0.2s ease;
}

form .input_box input:focus {
    border-color: #AB6886;
}

form .input_box .password_title {
    display: flex;
    justify-content: space-between;
    text-align: center;
}

form .input_box {
    position: relative;
}

a {
    text-decoration: none;
    color: #AB6886;
    font-weight: 500;
}

a:hover {
    text-decoration: underline;
}

/* Login button styling */
form button {
    width: 100%;
    height: 56px;
    border-radius: 5px;
    border: none;
    outline: none;
    background: #AB6886;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s ease;
}

form button:hover {
    background: #914567;
}

.timein {
    width: 100%;
    height: 56px;
    border-radius: 5px;
    border: none;
    outline: none;
    background: #AB6886;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s ease;
}

.timein:hover {
    background: #914567;
}

.error-message {
    color: #d32f2f;
    background-color: #ffebee;
    padding: 12px;
    border: 1px solid #f44336;
    margin-bottom: 15px;
    border-radius: 5px;
    text-align: center;
    font-size: 14px;
}

.success-message {
    color: #2e7d32;
    background-color: #e8f5e8;
    padding: 12px;
    border: 1px solid #4caf50;
    margin-bottom: 15px;
    border-radius: 5px;
    text-align: center;
    font-size: 14px;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease-in-out;
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 30px;
    border: none;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease-in-out;
}

.modal h3 {
    text-align: center;
    color: #000;
    margin-bottom: 20px;
}

.modal .input_box {
    margin-bottom: 20px;
}

.modal .input_box label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.modal .input_box input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 18px;
    text-align: center;
    letter-spacing: 2px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.modal .input_box input:focus {
    border-color: #008B43;
    outline: none;
}

.modal .input_box input.error {
    border-color: #f44336;
    background-color: #ffebee;
}

.modal button {
    width: 100%;
    background-color: #008B43;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
    margin-bottom: 10px;
}

.modal button:hover {
    background-color: rgb(1, 110, 54);
}

.modal button.secondary {
    background-color: #6c757d;
    margin-bottom: 0;
}

.modal button.secondary:hover {
    background-color: #5a6268;
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.modal-actions button {
    flex: 1;
    margin-bottom: 0;
}

.back-to-login {
    text-align: center;
    margin-top: 15px;
}

.back-to-login a {
    color: #008B43;
    text-decoration: none;
    font-size: 14px;
}

.back-to-login a:hover {
    text-decoration: underline;
}

.otp-info {
    background-color: rgb(227, 253, 229);
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border-left: 4px solid rgb(1, 182, 88);
}

.otp-info p {
    margin: 0;
    color: rgb(0, 143, 43);
    font-size: 14px;
}

.otp-timer {
    text-align: center;
    margin-top: 10px;
    font-size: 12px;
    color: #666;
}

.default-otp-info {
    background-color: #fff3cd;
    padding: 10px;
    border-radius: 5px;
    margin-top: 15px;
    border-left: 4px solid #ffc107;
}

.default-otp-info p {
    margin: 0;
    color: #856404;
    font-size: 12px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

.shake {
    animation: shake 0.5s ease-in-out;
}