/* أنماط خاصة بصفحات المصادقة */
.auth-section {
    padding: 100px 0 80px;
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #e8f4fc 0%, #f8f9fa 100%);
}

.auth-container {
    max-width: 450px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.auth-header p {
    color: #7f8c8d;
    font-size: 1rem;
}

.auth-form {
    margin-top: 20px;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon i {
    position: absolute;
    right: 15px;
    color: #7f8c8d;
    font-size: 1.1rem;
}

.input-with-icon input {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Cairo', sans-serif;
    transition: border-color 0.3s ease;
}

.input-with-icon input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.toggle-password {
    position: absolute;
    left: 15px;
    background: none;
    border: none;
    color: #7f8c8d;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #3498db;
}

.forgot-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.forgot-link:hover {
    text-decoration: underline;
}

#loginBtn {
    position: relative;
    height: 48px;
    font-size: 1.1rem;
    font-weight: 600;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    position: absolute;
    right: 50%;
    transform: translateX(50%);
}

.spinner.hidden {
    display: none;
}

@keyframes spin {
    to {
        transform: translateX(50%) rotate(360deg);
    }
}

.auth-divider {
    position: relative;
    text-align: center;
    margin: 30px 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    width: 100%;
    height: 1px;
    background: #e0e0e0;
}

.auth-divider span {
    background: white;
    padding: 0 15px;
    color: #7f8c8d;
    position: relative;
    z-index: 1;
}

.social-login {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    border: 2px solid #e0e0e0;
    background: white;
    color: #555;
    transition: all 0.3s ease;
}

.btn-social:hover {
    border-color: #3498db;
    color: #3498db;
    transform: translateY(-2px);
}

.btn-social.google i {
    color: #DB4437;
}

.btn-social.twitter i {
    color: #1DA1F2;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
}

.auth-footer p {
    margin-bottom: 10px;
    color: #7f8c8d;
}

.auth-footer a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/*------- reg ----------------------

/* أنماط إضافية للتسجيل */
.registration-steps {
    display: flex;
    justify-content: space-between;
    margin: 30px 0;
    position: relative;
}

.registration-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    right: 0;
    left: 0;
    height: 2px;
    background: #e0e0e0;
    z-index: 1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    background: #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: #3498db;
    transform: scale(1.1);
}

.step span {
    font-size: 0.9rem;
    color: #7f8c8d;
    text-align: center;
}

.step.active span {
    color: #3498db;
    font-weight: 600;
}

.step-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.step-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.radio-label {
    display: flex;
    align-items: center;
    width: 50px;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}



.radio-label input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 50px;
    height: 50px;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
}

.radio-label input[type="radio"]:checked+.radio-custom {
    border-color: #3498db;
}

.radio-label input[type="radio"]:checked+.radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: #3498db;
    border-radius: 50%;
}

.password-strength {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.strength-bar {
    height: 5px;
    background: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.strength-bar::before {
    content: '';
    display: block;
    height: 100%;
    width: 0;
    background: #e74c3c;
    transition: all 0.3s ease;
}

.strength-text {
    font-size: 0.85rem;
    color: #7f8c8d;
}

.step-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.btn-success {
    background: #2ecc71;
    color: white;
}

.btn-success:hover {
    background: #27ae60;
}

.confirmation-section {
    text-align: center;
    padding: 20px 0;
}

.confirmation-icon {
    width: 80px;
    height: 80px;
    background: #e8f6f3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.confirmation-icon i {
    font-size: 40px;
    color: #2ecc71;
}

.confirmation-section h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.confirmation-section p {
    color: #7f8c8d;
    margin-bottom: 30px;
}

.confirmation-details {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    text-align: right;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.detail-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: #555;
}

.detail-value {
    color: #2c3e50;
    font-weight: 600;
}

.terms-agreement {
    text-align: right;
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.terms-agreement a {
    color: #3498db;
    text-decoration: none;
}

.terms-agreement a:hover {
    text-decoration: underline;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    text-align: right;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 22px;
    height: 22px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    position: relative;
    flex-shrink: 0;
    margin-top: 3px;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked+.checkmark {
    background: #3498db;
    border-color: #3498db;
}

.checkbox-label input[type="checkbox"]:checked+.checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
}

.error-message {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 5px;
    text-align: right;
    min-height: 20px;
}

/* نافذة التأكيد */
#successModal {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#successModal.active {
    opacity: 1;
}

#successModal .modal-content {
    background: white;
    border-radius: 15px;
    padding: 40px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

#successModal.active .modal-content {
    transform: scale(1);
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #d4edda;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.success-icon i {
    font-size: 40px;
    color: #155724;
}

#successModal h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.8rem;
}

#successModal p {
    color: #7f8c8d;
    margin-bottom: 30px;
    line-height: 1.6;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}






/* تصميم متجاوب */
@media (max-width: 768px) {
    .auth-section {
        padding: 80px 0 60px;
    }

    .auth-container {
        padding: 30px 20px;
        margin: 0 15px;
    }

    .auth-header h1 {
        font-size: 1.8rem;
    }

    .form-options {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
}