/* === المتغيرات الأساسية === */
:root {
    --primary-orange: #FB6D00;
    --primary-blue: #1A237E;
    --dark-blue: #000666;
    --bg-color: #FBF8FF;
    --text-main: #454652;
    --text-light: #757575;
    --border-color: #C6C5D4;
    --input-bg: #FFFFFF;
    --white: #FFFFFF;
    --font-main: 'Cairo', sans-serif;
}

/* === التصفير والإعدادات العامة === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}



/* === قسم تسجيل الدخول === */
.login-section {
    padding: 34px 0;
    position: relative;
    overflow: hidden;
}

/* تأثيرات الخلفية الضبابية */
.background-blur {
    position: absolute;
    border-radius: 9999px;
    filter: blur(32px);
    z-index: 0;
}

.blur-1 {
    width: 400px;
    height: 400px;
    background: rgba(0, 6, 102, 0.05);
    top: -10%;
    left: 70%;
}

.blur-2 {
    width: 400px;
    height: 400px;
    background: rgba(251, 109, 0, 0.1);
    bottom: -10%;
    right: 70%;
}

.login-container {
    display: flex;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0px 20px 25px -5px rgba(0, 0, 0, 0.1), 0px 8px 10px -6px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
}

/* === جانب النموذج === */
.form-side {
    flex: 1;
    padding: 64px;
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 8px;
}

.form-header p {
    color: var(--text-light);
    font-size: 16px;
    margin-bottom: 32px;
}

.input-group {
    margin-bottom: 24px;
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.label-row label, .input-group label {
    font-size: 14px;
    color: #424242;
}

.forgot-password {
    font-size: 12px;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
}

.input-wrapper {
    position: relative;
}

.input-wrapper input {
    width: 100%;
    padding: 9px 40px 9px 16px;
    height: 50px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 16px;
    color: var(--text-main);
    background: var(--input-bg);
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-color: #767683;
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
}

.email-icon { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z' /%3E%3C/svg%3E"); }
.lock-icon { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z' /%3E%3C/svg%3E"); }

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
}

.eye-icon {
    display: inline-block;
    width: 22px;
    height: 15px;
    background-color: #767683;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M15 12a3 3 0 11-6 0 3 3 0 016 0z' /%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z' /%3E%3C/svg%3E");
    mask-size: contain;
    mask-repeat: no-repeat;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-orange);
}

.remember-me label {
    font-size: 14px;
    color: var(--text-light);
}

.btn-submit {
    width: 100%;
    padding: 16px;
    background-color: var(--primary-orange);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0px 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s;
}

.btn-submit:hover {
    background-color: #e56200;
}

/* الفاصل */
.divider {
    display: flex;
    align-items: center;
    margin: 32px 0;
}

.divider::before, .divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.divider span {
    padding: 0 16px;
    color: var(--text-light);
    font-size: 16px;
}

/* تسجيل الدخول الاجتماعي */
.social-login {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.btn-social {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--white);
    cursor: pointer;
    font-family: var(--font-main);
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.btn-social:hover {
    background-color: #f9f9f9;
}

.signup-link {
    text-align: center;
    color: var(--text-light);
    font-size: 16px;
}

.signup-link a {
    color: var(--primary-blue);
    font-weight: 700;
    text-decoration: none;
    margin-right: 4px;
}

/* === الجانب المرئي === */
.visual-side {
    flex: 1;
    background: linear-gradient(143.52deg, #1A237E 0%, #000666 100%);
    padding: 64px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    text-align: center;
}

.visual-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') center/cover no-repeat;
    opacity: 0.1;
}

.visual-content {
    position: relative;
    z-index: 2;
    color: var(--white);
}

.visual-content h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 14.8px;
}

.visual-content p {
    font-size: 16px;
    line-height: 26px;
    opacity: 0.9;
    margin-bottom: 32px;
    max-width: 384px;
}

.stats {
    display: flex;
    gap: 16px;
}

.stat-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(2px);
    padding: 16px;
    border-radius: 8px;
    width: 128px;
}

.stat-box h3 {
    color: var(--primary-orange);
    font-size: 24px;
    font-weight: 700;
}

.stat-box span {
    color: var(--white);
    font-size: 12px;
    font-weight: 500;
}

/* === الفوتر === */
.footer {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 64px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 48px;
}

.footer-col h4 {
    font-size: 20px;
    margin-bottom: 24px;
    color: var(--white);
}

.footer-col p {
    font-size: 14px;
    color: #8690EE;
    line-height: 1.6;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #8690EE;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: var(--white);
}

.contact-info p {
    margin-bottom: 16px;
}

.footer-bottom {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: #8690EE;
    font-size: 14px;
    text-align: center;
    opacity: 0.6;
}
/* === Buttons === */
.btn {
    padding: 8px 24px;
    border-radius: 8px;
    font-family: 'Cairo', sans-serif;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background-color: var(--secondary);
    color: #FFFCFC;
}
.btn-primary:hover {
    background-color: #e65100;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline:hover {
    background-color: var(--primary);
    color: white;
}

.btn-outline-block {
    width: 100%;
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
    padding: 8px;
    border-radius: 8px;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.btn-outline-block:hover {
    background-color: var(--primary);
    color: white;
}

/* === Responsive Breakpoints === */
@media (max-width: 992px) {
    .login-container {
        flex-direction: column;
    }
    .form-side {
        padding: 40px 24px;
    }
    .visual-side {
        padding: 40px 24px;
    }
    .visual-content h2 {
        font-size: 24px;
    }
    .stats {
        flex-wrap: wrap;
        justify-content: center;
    }
    .stat-box {
        width: 100px;
    }
}

@media (max-width: 768px) {
    .login-section {
        padding: 20px 0;
    }
    .form-side {
        padding: 30px 20px;
    }
    .form-header h1 {
        font-size: 20px;
    }
    .form-header p {
        font-size: 14px;
    }
    .input-wrapper input {
        height: 44px;
        font-size: 14px;
    }
    .btn-submit {
        padding: 12px;
        font-size: 16px;
    }
    .social-login {
        flex-direction: column;
    }
    .visual-content h2 {
        font-size: 20px;
    }
    .visual-content p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    .form-side {
        padding: 24px 16px;
    }
    .input-wrapper input {
        padding: 8px 36px 8px 12px;
        height: 42px;
        font-size: 13px;
    }
    .btn-submit {
        padding: 10px;
        font-size: 15px;
    }
    .visual-side {
        display: none;
    }
}

