/* 
 * auth.css - تنسيقات مخصصة لصفحات المصادقة
 * MindForge Marketplace
 */

/* ===== تنسيقات عامة لصفحات المصادقة ===== */
.auth-section {
    padding: 60px 0;
    min-height: calc(100vh - 80px - 300px); /* ارتفاع الشاشة - الهيدر - الفوتر */
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.auth-container {
    display: flex;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.auth-content {
    flex: 1;
    padding: 40px;
    position: relative;
}

.auth-image {
    flex: 1;
    background-color: #f5f7fa;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.auth-image img {
    max-width: 100%;
    height: auto;
    margin-bottom: 30px;
    animation: float 6s ease-in-out infinite;
}

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

.auth-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #2c3e50;
    text-align: center;
}

.auth-subtitle {
    font-size: 16px;
    color: #6c757d;
    margin-bottom: 30px;
    text-align: center;
}

/* ===== تنسيقات النماذج ===== */
.auth-form {
    display: none;
    margin-bottom: 20px;
}

.auth-form.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.auth-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3e50;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="tel"],
.auth-form input[type="url"],
.auth-form select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #dce0e4;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.auth-form input:focus,
.auth-form select:focus {
    border-color: #4a6cf7;
    box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.15);
    outline: none;
    background-color: #fff;
}

.auth-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%232c3e50' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 15px center;
    padding-left: 40px;
}

.password-input {
    position: relative;
}

.toggle-password {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #6c757d;
    font-size: 16px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-password:hover {
    color: #4a6cf7;
}

.form-hint {
    display: block;
    font-size: 12px;
    color: #6c757d;
    margin-top: 5px;
}

/* ===== تنسيقات أزرار المصادقة ===== */
.auth-options {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 15px;
}

.auth-option {
    flex: 1;
    background: none;
    border: none;
    padding: 12px;
    font-size: 15px;
    font-weight: 500;
    color: #6c757d;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
}

.auth-option:hover {
    color: #4a6cf7;
    background-color: rgba(74, 108, 247, 0.05);
}

.auth-option.active {
    color: #4a6cf7;
    font-weight: 600;
}

.auth-option.active::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #4a6cf7;
    border-radius: 3px 3px 0 0;
}

.auth-option i {
    font-size: 18px;
}

/* ===== تنسيقات أزرار التسجيل الاجتماعي ===== */
.social-login,
.social-signup {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #dce0e4;
    background-color: #fff;
}

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

.social-btn.google {
    color: #ea4335;
    border-color: #ea4335;
}

.social-btn.google:hover {
    background-color: rgba(234, 67, 53, 0.05);
}

.social-btn.facebook {
    color: #1877f2;
    border-color: #1877f2;
}

.social-btn.facebook:hover {
    background-color: rgba(24, 119, 242, 0.05);
}

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

/* ===== تنسيقات الفاصل ===== */
.divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
    color: #6c757d;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: #e9ecef;
}

.divider span {
    padding: 0 15px;
    font-size: 14px;
}

/* ===== تنسيقات قوة كلمة المرور ===== */
.password-strength {
    margin-top: 10px;
}

.strength-bar {
    height: 5px;
    background-color: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 5px;
}

.strength-level {
    height: 100%;
    width: 0;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.strength-text {
    font-size: 12px;
    color: #6c757d;
}

/* ===== تنسيقات خانات الاختيار ===== */
.auth-form input[type="checkbox"] {
    margin-left: 8px;
    transform: scale(1.2);
}

.auth-form .terms,
.auth-form .two-factor,
.auth-form .remember-me {
    display: flex;
    align-items: center;
}

.auth-form .terms label,
.auth-form .two-factor label,
.auth-form .remember-me label {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    cursor: pointer;
}

.auth-form .terms a {
    color: #4a6cf7;
    text-decoration: none;
    font-weight: 500;
}

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

/* ===== تنسيقات تذكرني ونسيت كلمة المرور ===== */
.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.forgot-password a {
    color: #4a6cf7;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

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

/* ===== تنسيقات تذييل المصادقة ===== */
.auth-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.auth-footer p {
    color: #6c757d;
    font-size: 15px;
}

.auth-footer a {
    color: #4a6cf7;
    text-decoration: none;
    font-weight: 500;
}

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

.auth-help {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
    color: #6c757d;
}

.auth-help a {
    color: #4a6cf7;
    text-decoration: none;
    font-weight: 500;
}

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

/* ===== تنسيقات مزايا المنصة ===== */
.auth-benefits {
    background-color: #fff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    width: 100%;
}

.auth-benefits h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #2c3e50;
    text-align: center;
}

.auth-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.auth-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    color: #4f5b67;
}

.auth-benefits li:last-child {
    margin-bottom: 0;
}

.auth-benefits i {
    color: #4a6cf7;
    font-size: 16px;
    margin-top: 3px;
}

/* ===== تنسيقات الأزرار ===== */
.btn-large {
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
}

.btn-primary {
    background-color: #4a6cf7;
    border-color: #4a6cf7;
    color: #fff;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #3a5bd9;
    border-color: #3a5bd9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 108, 247, 0.2);
}

.btn-secondary {
    background-color: #f8f9fa;
    border-color: #dce0e4;
    color: #2c3e50;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* ===== تنسيقات المصادقة الثنائية ===== */
.verification-code-input {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

.verification-code-input input {
    flex: 1;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    padding: 12px 5px;
    border-radius: 8px;
    border: 1px solid #dce0e4;
    background-color: #f8f9fa;
    max-width: 50px;
}

.verification-code-input input:focus {
    border-color: #4a6cf7;
    box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.15);
    outline: none;
    background-color: #fff;
}

/* ===== تنسيقات متجاوبة ===== */
@media (max-width: 992px) {
    .auth-container {
        flex-direction: column;
    }
    
    .auth-image {
        display: none;
    }
    
    .auth-content {
        padding: 30px;
    }
    
    .social-login,
    .social-signup {
        flex-direction: column;
    }
    
    .form-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .auth-options {
        overflow-x: auto;
        padding-bottom: 5px;
    }
    
    .auth-option {
        white-space: nowrap;
        padding: 10px;
    }
}

@media (max-width: 576px) {
    .auth-section {
        padding: 30px 0;
    }
    
    .auth-title {
        font-size: 24px;
    }
    
    .auth-subtitle {
        font-size: 14px;
    }
    
    .auth-content {
        padding: 20px;
    }
    
    .verification-code-input {
        gap: 5px;
    }
    
    .verification-code-input input {
        max-width: 40px;
        font-size: 18px;
    }
}
