/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Rubik', sans-serif;
}

/* الوضع الافتراضي (Dark Mode) */
body {
    background: #0a0e1a;
    color: #d1d5db;
    line-height: 1.6;
    overflow: hidden; /* منع التمرير في كل الاتجاهات */
}

/* الوضع النهاري (Light Mode) */
body.light-mode {
    background: #f5f5f5;
    color: #333;
}

body.fade-out {
    opacity: 0;
}

/* Login Section */
.login-section {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1d4ed8;
    overflow: hidden;
}

body.light-mode .login-section {
    background: #e6e6e6;
}

.login-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.8) 0%, rgba(147, 51, 234, 0.8) 100%);
    opacity: 0.75;
    z-index: 1;
}

body.light-mode .login-overlay {
    background: linear-gradient(135deg, rgba(200, 200, 200, 0.8) 0%, rgba(180, 180, 180, 0.8) 100%);
}

/* Container for Form and Image */
.login-container {
    z-index: 2;
    display: flex;
    width: 100%;
    height: 100vh;
    background: url('https://cdn.pixabay.com/photo/2016/11/23/18/01/apple-1854101_1280.jpg') no-repeat center/cover;
    overflow: hidden;
    position: relative;
    background-size: cover; /* الصورة تكون بحجم الشاشة بالضبط */
    background-position: center; /* الصورة تكون مركزة */
}

/* Image (Left Side) */
.login-image {
    flex: 2;
    background: none;
    margin: 0;
    padding: 0;
    width: 100%; /* الصورة تأخذ عرض الشاشة بالكامل */
    height: 100vh; /* الصورة تأخذ ارتفاع الشاشة بالكامل */
}

/* Form Content (Right Side) */
.login-content {
    flex: 1;
    padding: 20px;
    background: rgba(10, 14, 26, 0.9);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease forwards;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0;
    border-radius: 0;
}

body.light-mode .login-content {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* Login Content */
.login-content h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
    letter-spacing: 1px;
}

body.light-mode .login-content h1 {
    color: #333;
    text-shadow: none;
}

.login-content .highlight {
    background: linear-gradient(135deg, #1d4ed8 0%, #9333ea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.light-mode .login-content .highlight {
    background: linear-gradient(135deg, #1d4ed8 0%, #9333ea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-subtitle {
    font-size: 1rem;
    font-weight: 300;
    color: #e5e7eb;
    margin-bottom: 10px;
}

body.light-mode .login-subtitle {
    color: #666;
}

/* Divider */
.divider {
    position: relative;
    margin: 10px 0;
    text-align: center;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

body.light-mode .divider::before {
    background: rgba(0, 0, 0, 0.2);
}

.divider span {
    background: rgba(10, 14, 26, 0.95);
    padding: 0 10px;
    color: #9ca3af;
    font-size: 0.8rem;
    position: relative;
}

body.light-mode .divider span {
    background: rgba(255, 255, 255, 0.95);
    color: #666;
}

/* Login Form */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
    position: relative;
}

.form-group label {
    font-size: 0.9rem;
    color: #d1d5db;
    margin-bottom: 5px;
    font-weight: 400;
}

body.light-mode .form-group label {
    color: #666;
}

.form-group input {
    padding: 10px 40px 10px 10px;
    font-size: 0.9rem;
    color: #d1d5db;
    background: rgba(31, 41, 55, 0.8);
    border: 1px solid rgba(147, 51, 234, 0.3);
    border-radius: 6px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

body.light-mode .form-group input {
    color: #333;
    background: rgba(200, 200, 200, 0.8);
    border: 1px solid rgba(147, 51, 234, 0.3);
}

.form-group input:focus {
    border-color: #9333ea;
    box-shadow: 0 0 8px rgba(147, 51, 234, 0.3);
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 65%;
    transform: translateY(-50%);
    color: #d1d5db;
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.3s ease;
}

body.light-mode .toggle-password {
    color: #666;
}

.toggle-password:hover {
    color: #9333ea;
}

.form-btn {
    padding: 10px;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #1d4ed8 0%, #9333ea 100%);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.4);
}

.form-footer {
    margin-top: 10px;
    font-size: 0.8rem;
    color: #9ca3af;
    text-align: center;
}

body.light-mode .form-footer {
    color: #666;
}

.form-footer a {
    color: #f59e0b;
    text-decoration: none;
    transition: color 0.3s ease;
}

body.light-mode .form-footer a {
    color: #9333ea;
}

.form-footer a:hover {
    color: #9333ea;
}

/* Animation */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .login-image {
        flex: 1.5;
    }
    .login-content {
        flex: 1;
    }
    .login-content h1 {
        font-size: 1.8rem;
    }
    .login-subtitle {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
        height: 100vh;
    }
    .login-image {
        height: 50%;
        border-radius: 0;
    }
    .login-content {
        height: 50%;
        border-radius: 0;
        padding: 15px;
    }
    .login-content h1 {
        font-size: 1.5rem;
    }
    .login-subtitle {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .login-content {
        padding: 10px;
    }
    .login-content h1 {
        font-size: 1.2rem;
    }
    .login-subtitle {
        font-size: 0.7rem;
    }
    .form-group input {
        padding: 8px 40px 8px 10px;
        font-size: 0.8rem;
    }
    .toggle-password {
        top: 65%;
        font-size: 0.9rem;
    }
    .form-btn {
        padding: 8px;
        font-size: 0.9rem;
    }
    .social-btn {
        padding: 6px;
        font-size: 0.8rem;
    }
    .login-image {
        height: 40%;
    }
    .login-content {
        height: 60%;
    }
}

.platform-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}
.platform-icon img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #9333ea;
    box-shadow: 0 12px 36px rgba(147, 51, 234, 0.28);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 0;
}
.platform-icon img:hover {
    transform: scale(1.07);
    box-shadow: 0 18px 48px rgba(147, 51, 234, 0.38);
}
body.light-mode .platform-icon img {
    border: 4px solid #1d4ed8;
    box-shadow: 0 12px 36px rgba(29, 78, 216, 0.18);
}
body.light-mode .platform-icon img:hover {
    box-shadow: 0 18px 48px rgba(29, 78, 216, 0.28);
}