@charset "utf-8";
/* CSS Document */

/* login.css */
/* Dedicated styles for the login modal to prevent conflicts. */

/* The full-screen background overlay */
#loginModalOverlay { 
    display: none; /* Must be 'none' here */
    position: fixed !important; /* 👈 CRITICAL */
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.7) !important;
    z-index: 999999 !important; /* 👈 Highest possible value */
    justify-content: center;
    align-items: center;
}




/* The actual modal/popup box */
.login-modal-content {
    background-color: #ffffff;
    color: #333;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    width: 90%;
    max-width: 400px;
    position: relative;
    text-align: center;
	z-index: 100000;
}

/* The close button (X) */
.login-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2rem;
    font-weight: bold;
    color: #888;
    cursor: pointer;
    line-height: 1;
}
.login-modal-close:hover {
    color: #000;
}

/* Form Styles */
.login-modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.login-modal-group label {
    display: block;
    text-align: left;
    margin: 15px 0 5px;
    font-weight: 500;
}

.login-modal-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Important! */
    font-size: 1rem;
}

.login-modal-button {
    width: 100%;
    padding: 12px;
    margin-top: 20px;
    border: none;
    border-radius: 4px;
    background-color: #007bff; /* Example primary color */
    color: white;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}
.login-modal-button:hover {
    background-color: #0056b3;
}

/* OTP Input Specifics */
.otp-container {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin: 20px 0;
}
.otp-input {
    width: 45px;
    height: 45px;
    text-align: center;
    font-size: 1.2rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.login-modal-message {
    margin-top: 15px;
    color: #d9534f; /* Error color */
    font-weight: 500;
    min-height: 20px;
}

/* Helper class to prevent background scroll when modal is open */
body.modal-open {
    overflow: hidden;
}

#loginSection {
    display: block; /* The form fields must be visible */
}

#otpSection {
    display: none; /* Keep this hidden until OTP is sent */
}

