
/* Authentication Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.auth-modal-content {
    background: white;
    width: 90%;
    max-width: 400px;
    padding: 30px;
    border-radius: 20px;
    position: relative;
    text-align: right;
    direction: rtl;
}

.auth-modal-content h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

.input-group {
    margin-bottom: 15px;
    text-align: right;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.9rem;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.input-group input:focus {
    border-color: var(--primary-color);
}

.main-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.main-btn:hover {
    background: var(--primary-hover);
}

.secondary-btn {
    background: white;
    color: var(--text-dark);
    border: 1px solid #e2e8f0;
    padding: 12px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
}

.full-width {
    width: 100%;
}

.close-modal-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #94a3b8;
    cursor: pointer;
}

.switch-auth {
    text-align: center;
    margin-top: 15px;
    font-size: 0.9rem;
    color: #64748b;
}

.switch-auth a {
    color: var(--primary-color);
    font-weight: bold;
    cursor: pointer;
}

.otp-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.resend-link {
    text-align: center;
    margin-top: 15px;
    font-size: 0.85rem;
}

.resend-link a {
    color: var(--text-muted);
    text-decoration: underline;
    cursor: pointer;
}
