/* ===== صفحات المصادقة ===== */

/* تنسيق قسم المصادقة */
.auth-section {
    padding: 60px 0;
    background-color: var(--background-color);
    min-height: calc(100vh - 400px);
    display: flex;
    align-items: center;
}

.auth-container {
    max-width: 500px;
    margin: 0 auto;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 40px;
}

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

.auth-header h1 {
    font-family: 'Cairo', sans-serif;
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.auth-header p {
    color: var(--text-secondary);
}

/* نموذج المصادقة */
.auth-form {
    margin-bottom: 30px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.input-with-icon input {
    width: 100%;
    padding: 12px 40px 12px 15px;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-family: 'Tajawal', sans-serif;
    transition: var(--transition);
}

.input-with-icon input:focus {
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.1);
}

.toggle-password {
    position: absolute;
    left: 45px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    padding-right: 30px;
    cursor: pointer;
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    right: 0;
    top: 0;
    height: 20px;
    width: 20px;
    background-color: var(--light-gray);
    border-radius: 4px;
}

.checkbox-container:hover input ~ .checkmark {
    background-color: #d0d0d0;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--secondary-color);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    right: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.forgot-password {
    color: var(--secondary-color);
    font-size: 0.9rem;
    transition: var(--transition);
}

.forgot-password:hover {
    text-decoration: underline;
}

.btn-block {
    width: 100%;
    text-align: center;
}

/* تسجيل الدخول بالشبكات الاجتماعية */
.social-login {
    text-align: center;
    margin-bottom: 30px;
}

.social-login p {
    position: relative;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.social-login p::before,
.social-login p::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background-color: var(--light-gray);
}

.social-login p::before {
    right: 0;
}

.social-login p::after {
    left: 0;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 15px;
    border-radius: var(--border-radius);
    border: none;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.social-btn.google {
    background-color: #ffffff;
    color: #4285F4;
    border: 1px solid #4285F4;
}

.social-btn.facebook {
    background-color: #3b5998;
    color: white;
}

.social-btn.twitter {
    background-color: #1da1f2;
    color: white;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

/* تذييل المصادقة */
.auth-footer {
    text-align: center;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--secondary-color);
    font-weight: 600;
    transition: var(--transition);
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* التصميم المتجاوب */
@media (max-width: 768px) {
    .auth-container {
        padding: 30px 20px;
    }
    
    .social-buttons {
        flex-direction: column;
    }
    
    .social-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .auth-section {
        padding: 30px 0;
    }
    
    .auth-header h1 {
        font-size: 1.5rem;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
