﻿
:root {
    --primary: #2c3e50;
    /*    --primary: #4361ee;*/
    --primary-dark: #3a56d4;
    --secondary: #3498db;
    /*    --secondary: #7209b7;*/
    --success: #4cc9f0;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
    --border: #dee2e6;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    /*    background: linear-gradient(135deg, #2c3e50 0%, #147abf 100%);*/
    background: linear-gradient(135deg, #0f172a 0%, #315481 100%);
    /*    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    direction: rtl;
}

.login-container {
    display: flex;
    width: 100%;
    max-width: 1000px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-left {
    flex: 1;
    /*    background: linear-gradient(135deg, var(--primary), var(--secondary));*/
    background: linear-gradient(135deg, #0f172a 0%, #315481 100%);
    color: white;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

    .login-left::before {
        content: "";
        position: absolute;
        top: -50px;
        right: -50px;
        width: 200px;
        height: 200px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.1);
    }

    .login-left::after {
        content: "";
        position: absolute;
        bottom: -80px;
        left: -80px;
        width: 250px;
        height: 250px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.1);
    }

.logo {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

    .logo i {
        font-size: 2.5rem;
        margin-left: 15px;
    }

    .logo h1 {
        font-size: 1.8rem;
        font-weight: 700;
    }

.welcome-text {
    position: relative;
    z-index: 1;
}

    .welcome-text h2 {
        font-size: 2.2rem;
        margin-bottom: 15px;
        font-weight: 700;
    }

    .welcome-text p {
        font-size: 1.1rem;
        line-height: 1.6;
        opacity: 0.9;
    }

.features {
    margin-top: 30px;
    position: relative;
    z-index: 1;
}

.feature {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

    .feature i {
        margin-left: 10px;
        font-size: 1.2rem;
    }

.login-right {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.login-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

    .login-header h2 {
        color: var(--dark);
        font-size: 1.8rem;
        font-weight: 700;
    }

/* تصميم مغير اللغة */
.language-selector {
    position: relative;
    width: 150px;
}

.selected-language {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    justify-content: space-between;
}

    .selected-language:hover {
        border-color: var(--primary);
    }

.lang-content {
    display: flex;
    align-items: center;
}

    .lang-content img {
        width: 20px;
        height: 15px;
        margin-left: 8px;
        border-radius: 2px;
    }

.arrow {
    transition: var(--transition);
    font-size: 12px;
    color: var(--gray);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-top: 5px;
    box-shadow: var(--shadow);
    z-index: 100;
    overflow: hidden;
    display: none;
}

.language-selector.active .language-dropdown {
    display: block;
}

.language-selector.active .arrow {
    transform: rotate(180deg);
}

.language-option {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    cursor: pointer;
    transition: var(--transition);
}

    .language-option:hover {
        background-color: #f8f9fa;
    }

    .language-option.active {
        background-color: #e9ecef;
    }

    .language-option img {
        width: 20px;
        height: 15px;
        margin-left: 8px;
        border-radius: 2px;
    }

/* نموذج تسجيل الدخول */
.login-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        display: block;
        margin-bottom: 8px;
        color: var(--dark);
        font-weight: 500;
    }

.input-with-icon {
    position: relative;
}

    .input-with-icon i {
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--gray);
    }

.form-control {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition);
}

    .form-control:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
    }

.options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.remember-me {
    display: flex;
    align-items: center;
}

    .remember-me input {
        margin-left: 8px;
    }

.forgot-password {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

    .forgot-password:hover {
        text-decoration: underline;
    }

.login-btn {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 20px;
}

    .login-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 15px rgba(67, 97, 238, 0.4);
    }

.divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
    color: var(--gray);
}

    .divider::before {
        content: "";
        position: absolute;
        top: 50%;
        right: 0;
        width: 45%;
        height: 1px;
        background: var(--border);
    }

    .divider::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 0;
        width: 45%;
        height: 1px;
        background: var(--border);
    }

.social-login {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
}

    .social-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    .social-btn.google {
        color: #DB4437;
    }

    .social-btn.facebook {
        color: #4267B2;
    }

    .social-btn.apple {
        color: #000;
    }

.login-footer {
    text-align: center;
    margin-top: 30px;
    color: var(--gray);
}

    .login-footer a {
        color: var(--primary);
        text-decoration: none;
    }

/* تصميم متجاوب */
@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
    }

    .login-left {
        padding: 30px;
    }

    .welcome-text h2 {
        font-size: 1.8rem;
    }
}


