/* auth.css - في المجلد الرئيسي */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --success: #059669;
    --danger: #dc2626;
    --dark: #0f172a;
    --darker: #0a0f1e;
    --light: #f8fafc;
    --gray: #94a3b8;
}

body {
    font-family: 'Cairo', sans-serif;
    background: var(--dark);
    color: var(--light);
    min-height: 100vh;
}

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, var(--dark), var(--darker));
}

.auth-card {
    background: var(--darker);
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 480px;
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo {
    height: 70px;
    margin-bottom: 20px;
}

.auth-header h1 {
    color: var(--light);
    font-size: 2rem;
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--gray);
}

.alert {
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-danger {
    background: rgba(220,38,38,0.1);
    border: 1px solid rgba(220,38,38,0.2);
    color: #ef4444;
}

.alert-success {
    background: rgba(5,150,105,0.1);
    border: 1px solid rgba(5,150,105,0.2);
    color: #10b981;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: var(--light);
    font-weight: 500;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group i:first-child {
    position: absolute;
    right: 14px;
    color: var(--gray);
    z-index: 1;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 14px 45px 14px 45px;
    background: rgba(0,0,0,0.3);
    border: 2px solid rgba(255,255,255,0.05);
    border-radius: 14px;
    color: var(--light);
    font-size: 1rem;
    transition: all 0.3s;
    font-family: 'Cairo', sans-serif;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(37,99,235,0.1);
}

.toggle-password {
    position: absolute;
    left: 14px;
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    font-size: 1.1rem;
}

.form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.forgot-link {
    color: var(--primary);
    text-decoration: none;
}

.btn {
    padding: 14px 24px;
    border-radius: 14px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'Cairo', sans-serif;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--primary);
    color: white;
    width: 100%;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    width: 100%;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-block {
    width: 100%;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
}

.auth-divider {
    position: relative;
    text-align: center;
    margin: 25px 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255,255,255,0.1);
}

.auth-divider span {
    position: relative;
    background: var(--darker);
    padding: 0 15px;
    color: var(--gray);
}

.social-login {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.btn-social {
    padding: 12px;
    border-radius: 14px;
    border: 2px solid rgba(255,255,255,0.05);
    background: rgba(0,0,0,0.2);
    color: var(--light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
}

.btn-social.google:hover {
    background: #DB4437;
}

.btn-social.facebook:hover {
    background: #4267B2;
}

.auth-info {
    display: none;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.feature-item {
    display: flex;
    gap: 12px;
}

.feature-item i {
    color: var(--success);
    font-size: 1.3rem;
}

.feature-item strong {
    display: block;
    color: var(--light);
    margin-bottom: 3px;
}

.feature-item p {
    color: var(--gray);
    margin: 0;
}

.testimonial {
    background: rgba(37,99,235,0.1);
    border-radius: 12px;
    padding: 20px;
    margin: 30px 0;
}

.testimonial-text {
    color: var(--light);
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 15px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.testimonial-author strong {
    display: block;
    color: var(--light);
}

.testimonial-author span {
    color: var(--gray);
}

.stats-banner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    background: rgba(255,255,255,0.02);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.stat-number {
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    color: var(--gray);
}

.loading-spinner-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.role-selection {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    padding: 5px;
    background: rgba(0,0,0,0.2);
    border-radius: 12px;
}

.role-btn {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--gray);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.role-btn.active {
    background: var(--primary);
    color: white;
}

.agent-info {
    margin-top: 10px;
    padding: 15px;
    background: rgba(37,99,235,0.05);
    border-radius: 10px;
}

.agent-card {
    display: flex;
    align-items: center;
    gap: 15px;
}

.agent-card img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.agent-card h4 {
    color: var(--light);
    margin-bottom: 5px;
}

.verified-badge {
    color: var(--primary);
    font-size: 0.9rem;
}

@media (min-width: 992px) {
    .auth-container {
        justify-content: space-between;
        padding: 40px 80px;
    }
    
    .auth-info {
        display: block;
        max-width: 550px;
        margin-right: 60px;
        padding: 50px;
        background: var(--darker);
        border-radius: 24px;
    }
}

@media (max-width: 768px) {
    .auth-card {
        padding: 30px 20px;
    }
    
    .social-login {
        grid-template-columns: 1fr;
    }
    
    .role-selection {
        flex-direction: column;
    }
}