/* تنسيقات صفحات تسجيل الدخول وإنشاء الحساب */
:root {
    --primary-color: #060033;
    --secondary-color: #03a7d3;
}

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    position: relative;
    overflow: hidden;
}

/* تأثيرات خلفية مثل الصورة */
.auth-container::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M0,0 L100,0 L100,100 L0,100 Z" fill="%23060033" opacity="0.3"/><path d="M30,30 C40,20 60,20 70,30 C80,40 80,60 70,70 C60,80 40,80 30,70 C20,60 20,40 30,30 Z" fill="%2303a7d3" opacity="0.2"/></svg>');
    opacity: 0.1;
    z-index: 0;
}

.auth-card {
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    transform: translateY(0);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    background-color: white;
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: row;
}

.auth-card-left {
    flex: 1;
    background-color: var(--primary-color);
    color: white;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-card-left::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--secondary-color) 0%, transparent 50%);
    opacity: 0.1;
}

.auth-card-left h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
}

.auth-card-left p {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 2rem;
}

.auth-card-right {
    flex: 1;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h4 {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.auth-body {
    padding: 0 !important;
}

.auth-input {
    border-radius: 8px;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.auth-input:focus {
    box-shadow: 0 0 0 3px rgba(3, 167, 211, 0.2);
    border-color: var(--secondary-color);
}

.auth-btn {
    border-radius: 8px;
    padding: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    margin-top: 1rem;
}

.auth-btn:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
}

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

.auth-footer a:hover {
    color: var(--primary-color) !important;
    text-decoration: none;
}

.auth-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.auth-tab {
    padding: 0.5rem 1.5rem;
    margin: 0 0.5rem;
    font-weight: 600;
    color: #6c757d;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.auth-tab.active {
    color: var(--primary-color);
}

.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--secondary-color);
}

.auth-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.auth-icon img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--secondary-color);
    padding: 3px;
}

.auth-illustration {
    max-width: 80%;
    margin: 2rem auto 0;
    display: block;
}

/* تأثيرات الحركة */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.fade-in-up {
    animation: fadeInUp 0.5s ease forwards;
}

.fade-in-right {
    animation: fadeInRight 0.5s ease forwards;
}

.fade-in-left {
    animation: fadeInLeft 0.5s ease forwards;
}

.pulse {
    animation: pulse 2s infinite;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.delay-4 {
    animation-delay: 0.4s;
}

.delay-5 {
    animation-delay: 0.5s;
}

/* تصميم متجاوب */
@media (max-width: 992px) {
    .auth-card {
        flex-direction: column;
        max-width: 500px;
    }
    
    .auth-card-left {
        padding: 2rem;
    }
    
    .auth-card-right {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .auth-container {
        padding: 1rem;
    }
    
    .auth-card-left h2 {
        font-size: 2rem;
    }
    
    .auth-card-left p {
        font-size: 1rem;
    }
    
    .auth-header h4 {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .auth-card-left {
        padding: 1.5rem;
    }
    
    .auth-card-right {
        padding: 1.5rem;
    }
    
    .auth-card-left h2 {
        font-size: 1.8rem;
    }
    
    .auth-tabs {
        margin-bottom: 1.5rem;
    }
    
    .auth-tab {
        padding: 0.5rem 1rem;
        margin: 0 0.3rem;
        font-size: 0.9rem;
    }
    
    .auth-icon img {
        width: 60px;
        height: 60px;
    }
}

/* تنسيقات خاصة بصفحة إنشاء الحساب */
.register-progress {
    height: 5px;
    border-radius: 5px;
    margin-bottom: 1.5rem;
    background-color: #e9ecef;
}

.register-progress-bar {
    height: 100%;
    border-radius: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

.user-type-selector {
    display: flex;
    gap: 15px;
    margin-bottom: 1.5rem;
}

.user-type-option {
    flex: 1;
    text-align: center;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-type-option:hover {
    border-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(3, 167, 211, 0.2);
}

.user-type-option.selected {
    border-color: var(--secondary-color);
    background-color: rgba(3, 167, 211, 0.1);
}

.user-type-option i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* تنسيقات إضافية لصفحة إنشاء الحساب */
.register-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.register-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
}

.register-step::before {
    content: '';
    position: absolute;
    top: 15px;
    right: calc(-50% + 15px);
    width: calc(100% - 30px);
    height: 2px;
    background-color: #e9ecef;
    z-index: 0;
}

.register-step:last-child::before {
    display: none;
}

.register-step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.register-step.active .register-step-number {
    background-color: var(--secondary-color);
    color: white;
}

.register-step.completed .register-step-number {
    background-color: var(--primary-color);
    color: white;
}

.register-step.completed::before {
    background-color: var(--secondary-color);
}

.register-step-label {
    font-size: 0.8rem;
    color: #6c757d;
    text-align: center;
    transition: all 0.3s ease;
}

.register-step.active .register-step-label,
.register-step.completed .register-step-label {
    color: var(--primary-color);
    font-weight: 600;
}
