

.required {
    color: #f00;
}

.status-message {
    display: none;    
    margin-top: 15px;
    padding: 10px;
    text-align: center;
    font-size: 14px;
    border-radius: 4px;
    animation: fadeInStatusMessage 0.3s ease-in;
}
#status-message.error{
    color: #e74c3c;
}
#status-message.success{
    color: #28a745;
}
@keyframes fadeInStatusMessage {
    from { opacity: 0; }
    to { opacity: 1; }
}

.form-group {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
}

.form-group input {
    padding: 12px 15px;
    border: 1px solid #D6D6D6;
    border-radius: 5px;
    font-size: 14px;
}

.form-group textarea {
    padding: 12px 15px;
    border: 1px solid #D6D6D6;
    border-radius: 5px;
    font-size: 14px;
    resize: vertical;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 5px;
}

.form-group, .form-options {
    align-self: stretch; /* Override the parent's align-items: center */
}

.whether-force-login {
    color: red; /* Set text color to red */
    text-align: center; /* Center the text */
    margin: 20px 0; /* Optional: Add some margin for spacing */
}

.error-message {
    color: #e74c3c;
    font-size: 12px;
    display: none;
}

.error-message.show {
    display: block;
    margin-top: 5px;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 203, 141, 0.3);
    border-radius: 50%;
    border-top-color: #00CB8D;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}


/* For login-content.php */

#login-section .form-options {
    justify-content: flex-end;
}

.login-container {
    max-width: 400px;
    margin: 40px auto;
}

.login-content {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.login-title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
}

.reset-description {
    text-align: center;
    margin-bottom: 20px;
    color: #666;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
    width: 100%;
}

.forgot-password-container {
    text-align: right;
}

.forgot-password {
    color: #FF0000;
    text-decoration: none;
    font-size: 14px;
}

.login-submit-btn {
    background-color: #00CB8D;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 12px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
}

.login-submit-btn:hover {
    background-color: #00b37a;
}

.login-divider {
    position: relative;
    text-align: center;
    margin: 25px 0;
}

.login-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #EBEBEB;
}

.login-divider span {
    position: relative;
    background-color: white;
    padding: 0 15px;
    z-index: 1;
    color: #9B9B9B;
}

.signup-option {
    text-align: center;
}

.signup-link {
    color: #00CB8D;
    text-decoration: none;
    font-size: 14px;
}

.back-to-login {
    text-align: center;
    margin-top: 20px;
}

.back-to-login a {
    color: #3498db;
    text-decoration: none;
}

.success-message {
    text-align: center;
    padding: 20px;
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    text-align: center;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@media (max-width: 768px) {
    .login-container {
        padding: 0 20px;
    }
    
    .login-content {
        padding: 20px;
    }
}


/* Login Modal Styles */
#loginModal .form-options {
    justify-content: flex-end;
}

.login-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.login-modal.active {
    display: flex;
}

.login-content {
    background-color: #fff;
    border-radius: 10px;
    max-width: 500px;
    width: 100%;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
}

.login-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.login-header h2 {
    margin: 0;
    flex-grow: 1;
    text-align: center;
}

.close-login {
    cursor: pointer;
}

.login-subheader {
    font-size: 14px;
    color: #9B9B9B;
    margin-bottom: 25px;
    text-align: center;
}



.login-submit-btn {
    align-self: stretch; /* Override the parent's align-items: center */
}


.login-submit-btn {
    background-color: #fff;
    color: #00CB8D;
    border: 1px solid #00CB8D;
    border-radius: 14px;
    padding: 12px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 85%;
    margin: 0 auto;
}

@media (max-width: 767px) {
    .login-submit-btn {
        width: 90%;
    }
}

.login-submit-btn:hover {
    background-color: #f5f5f5;
}

.login-divider {
    position: relative;
    text-align: center;
    margin: 25px 0;
}

.login-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #EBEBEB;
}

.login-divider span {
    position: relative;
    background-color: white;
    padding: 0 15px;
    z-index: 1;
    color: #9B9B9B;
}

.login-alert {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 15px;
    display: none;
}
.login-alert.show {
    display: block;
}

.signup-option {
    text-align: center;
}

.signup-link {
    color: #00CB8D;
    text-decoration: none;
    font-size: 14px;
}

@media (max-width: 480px) {
    .login-modal .login-content {
        padding: 20px;
    }
    
    .login-modal .form-options {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* Forget Password Modal Styles */
.forget-pwd-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.forget-pwd-modal.active {
    display: flex;
}

.forget-pwd-content {
    background-color: #fff;
    border-radius: 10px;
    max-width: 500px;
    width: 100%;
    padding: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    display: flex;
    flex-direction: column;
    max-height: 90vh; /* Limit maximum height */
}

.forget-pwd-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #f3f3f3;
    flex-shrink: 0; /* Prevent header from shrinking */
}

.forget-pwd-header h2 {
    margin: 0;
    text-align: center;
    flex-grow: 1;
}

.close-forget-pwd {
    cursor: pointer;
}

.close-forget-pwd img {
    display: block;
}

/* Scrollable container for form content */
.forget-pwd-scroll-container {
    padding: 0 30px 30px 30px;
    overflow-y: auto;
    max-height: calc(90vh - 70px); /* Adjust based on header height */
}

.forget-pwd-subheader {
    font-size: 14px;
    color: #666;
    margin: 20px 0;
    text-align: center;
}

.forget-pwd-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.code-input-container {
    display: flex;
    gap: 10px;
}

.code-input-container input {
    flex-grow: 1;
}

.request-otp-btn {
    padding: 0 15px;
    background-color: #00CB8D;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    min-width: 110px;
}

.request-otp-btn:hover {
    background-color: #00b37a;
}

.request-otp-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.otp-info {
    font-weight: bold;
    font-size: 14px;
    color: #00CB8D;
    margin-top: 5px;
    display: none;
}

.otp-info.show {
    display: block;
}

.password-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-container input[type="password"],
.password-input-container input[type="text"] {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: 1px solid #D6D6D6;
    border-radius: 5px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
}

.password-input-container input:focus {
    border-color: #00CB8D;
    box-shadow: 0 0 0 1px rgba(0, 203, 141, 0.3);
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    user-select: none;
}

.toggle-password img {
    width: 20px;
    height: 20px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.toggle-password:hover img {
    opacity: 1;
}

.forget-pwd-submit-btn {
    background-color: #00CB8D;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 12px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
}

.forget-pwd-submit-btn:hover {
    background-color: #00b37a;
}

.back-to-login {
    text-align: center;
    margin-top: 20px;
}

.back-to-login a {
    color: #3498db;
    text-decoration: none;
    font-size: 14px;
}

@media (max-width: 480px) {
    .forget-pwd-content {
        height: 100%;
        max-height: 100%;
        border-radius: 0;
    }
    
    .forget-pwd-scroll-container {
        padding: 0 20px 20px 20px;
        max-height: calc(100% - 70px);
    }
    
    .code-input-container {
        flex-direction: column;
    }
    
    .request-otp-btn {
        align-self: flex-end;
        height: 40px;
        margin-top: 5px;
    }
}

select optgroup {
    font-weight: bold;
    font-style: normal;
    color: #333;
    padding: 6px 0;
    margin-top: 5px;
}
select option {
    font-weight: normal;
    padding-left: 15px;
}