/* Modern Auth Pages - Light Theme */
:root {
    --primary-cyan: #06b6d4;
    --primary-purple: #8b5cf6;
    --light-bg: #f8fafc;
    --card-bg: #ffffff;
    --input-bg: #f1f5f9;
    --text-dark: #1e293b;
    --text-gray: #64748b;
    --border-color: #e2e8f0;
    --gradient-main: linear-gradient(135deg, #06b6d4, #8b5cf6);
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

[dir="rtl"] {
    font-family: 'Cairo', 'Inter', sans-serif;
}

/* Header */
.auth-header-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.auth-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.auth-logo:hover {
    transform: translateY(-2px);
}

.auth-logo i {
    color: var(--primary-cyan);
}

.language-switcher {
    display: flex;
    gap: 10px;
}

.lang-btn {
    padding: 10px 20px;
    background: var(--input-bg);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-gray);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.lang-btn:hover {
    background: #e0f2fe;
    color: var(--primary-cyan);
    border-color: var(--primary-cyan);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.15);
}

.lang-btn.active {
    background: var(--gradient-main);
    color: white;
    border-color: var(--primary-cyan);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

.modern-auth-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #e0f2fe 0%, #ede9fe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px 20px;
}

.auth-card {
    background: var(--card-bg);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-width: 900px;
    width: 100%;
    display: flex;
    min-height: 600px;
    border: 1px solid var(--border-color);
}

.auth-left {
    flex: 1;
    background: linear-gradient(135deg, 
        #e0c3fc 0%, 
        #f8b9d4 25%, 
        #d4a5f9 50%, 
        #a6d5fa 75%, 
        #c9e4f5 100%);
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-left::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 182, 193, 0.3) 0%, rgba(173, 216, 230, 0.2) 50%, transparent 70%);
    border-radius: 50%;
    top: -150px;
    right: -150px;
    animation: float 6s ease-in-out infinite;
}

.auth-left::after {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(221, 160, 221, 0.25) 0%, rgba(135, 206, 250, 0.15) 50%, transparent 70%);
    border-radius: 50%;
    bottom: -120px;
    left: -120px;
    animation: float 8s ease-in-out infinite reverse;
}

.robot-character {
    width: 280px;
    height: 280px;
    object-fit: cover;
    margin-bottom: 30px;
    border-radius: 50%;
    filter: drop-shadow(0 10px 30px rgba(6, 182, 212, 0.2));
    animation: float 3s ease-in-out infinite;
    border: 4px solid rgba(6, 182, 212, 0.3);
    background: white;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.welcome-bubble {
    background: white;
    border-radius: 20px;
    padding: 20px 30px;
    position: relative;
    text-align: center;
    margin-top: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.welcome-bubble::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 15px solid white;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
}

.welcome-bubble h3 {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 700;
}

.welcome-bubble p {
    color: var(--text-gray);
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

.auth-right {
    flex: 1;
    padding: 50px 40px;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.auth-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-main);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.3);
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.auth-icon i {
    font-size: 30px;
    color: white;
}

.auth-header h2 {
    color: var(--text-dark);
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: var(--text-dark);
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 600;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-gray);
    font-size: 16px;
    transition: all 0.3s ease;
}

.modern-input {
    width: 100%;
    padding: 14px 14px 14px 45px;
    background: var(--input-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-dark);
    font-size: 15px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.modern-input:focus {
    outline: none;
    border-color: var(--primary-cyan);
    background: #e0f2fe;
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.1);
}

.modern-input:focus + .input-icon {
    color: var(--primary-cyan);
}

.modern-input::placeholder {
    color: #94a3b8;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
}

.modern-checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-cyan);
    cursor: pointer;
}

.checkbox-label {
    color: var(--text-gray);
    font-size: 14px;
}

.forgot-password-link {
    color: var(--primary-cyan);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.forgot-password-link:hover {
    color: var(--primary-purple);
    text-decoration: underline;
    margin: 0;
    cursor: pointer;
}

.checkbox-label a {
    color: var(--primary-cyan);
    text-decoration: none;
    font-weight: 600;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.btn-primary-modern {
    width: 100%;
    padding: 16px;
    background: var(--gradient-main);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

.btn-primary-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(6, 182, 212, 0.4);
    filter: brightness(1.05);
}

.btn-primary-modern:active {
    transform: translateY(-1px);
}

.divider {
    text-align: center;
    margin: 25px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: var(--border-color);
}

.divider span {
    background: white;
    color: var(--text-gray);
    padding: 0 15px;
    position: relative;
    font-size: 14px;
}

.social-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-social:hover {
    border-color: var(--primary-cyan);
    background: #e0f2fe;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.15);
}

.btn-social:active {
    transform: translateY(-1px);
}

.btn-social i {
    font-size: 18px;
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
    color: var(--text-gray);
    font-size: 14px;
}

.auth-footer a {
    color: var(--primary-cyan);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.auth-footer a:hover {
    color: var(--primary-purple);
    text-decoration: underline;
}

.alert-modern {
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

.alert-modern.alert-danger {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #dc2626;
}

.alert-modern.alert-success {
    background: #d1fae5;
    border: 1px solid #6ee7b7;
    color: #059669;
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-card {
        flex-direction: column;
    }
    
    .auth-left {
        padding: 30px;
        min-height: 300px;
    }
    
    .robot-character {
        width: 180px;
        height: 180px;
    }
    
    .auth-right {
        padding: 30px 20px;
    }
    
    .social-buttons {
        grid-template-columns: 1fr;
    }
    
    .auth-header-bar {
        padding: 1rem;
    }
    
    .auth-logo {
        font-size: 20px;
    }
    
    .lang-btn {
        padding: 8px 14px;
        font-size: 13px;
    }
}

/* RTL Support */
[dir="rtl"] .input-icon {
    left: auto;
    right: 15px;
}

[dir="rtl"] .modern-input {
    padding: 14px 45px 14px 14px;
}

[dir="rtl"] .checkbox-wrapper {
    flex-direction: row-reverse;
}

[dir="rtl"] .auth-footer {
    direction: rtl;
}

[dir="rtl"] .welcome-bubble h3,
[dir="rtl"] .welcome-bubble p {
    text-align: right;
}

[dir="rtl"] .form-group label {
    text-align: right;
}
