/* Authentication Pages Styles */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    flex-direction: column;
    background-color: #f0eff5;
}

.auth-container {
    width: 100%;
    max-width: 450px;
}

.auth-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
}

.auth-header {
    text-align: center;
    padding: 2rem 2rem 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.auth-header .logo img {
    height: 60px;
    margin-bottom: 1rem;
}

.auth-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: #666;
    font-size: 0.95rem;
}

.auth-form {
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-label i {
    color: #0048ff;
    width: 16px;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
    font-family: 'Tajawal', sans-serif;
}

.form-control:focus {
    outline: none;
    border-color: #0048ff;
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.password-input {
    position: relative;
}

.password-toggle {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #0048ff;
}

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

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: #666;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #0048ff;
    border-color: #0048ff;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 10px;
}

.forgot-link {
    color: #0048ff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

.btn-full {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-family: 'Tajawal', sans-serif;
}

.btn-full:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.auth-footer {
    padding: 1.5rem 2rem 2rem;
    text-align: center;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.auth-footer p {
    margin-bottom: 1rem;
    color: #666;
}

.auth-footer a {
    color: #0048ff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.auth-footer a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.back-home {
    margin-top: 1rem;
}

.back-home a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.back-home a:hover {
    color: #333;
}

/* Registration Steps */
.registration-steps {
    display: flex;
    justify-content: center;
    margin: 2rem .5rem;
}

.step {
    align-items: center;
    padding: 0.5rem;
    border-radius: 6px;
    background: #f8f9fa;
    color: #666;
    font-size: 0.6rem;
    margin: 0 0.25rem;
    transition: all 0.3s ease;
}

.step.active {
    background: #0048ff;
    color: white;
}

.step.completed {
    background: #28a745;
    color: white;
}

.step-number {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.8rem;
}

/* Country Code Selector */
.phone-input {
    display: flex;
    gap: 0.5rem;
}

.country-code {
    flex: 0 0 120px;
}

.phone-number {
    flex: 1;
}

/* Profile Image Upload */
.profile-upload {
    text-align: center;
    margin-bottom: 2rem;
}

.upload-area {
    width: 120px;
    height: 120px;
    border: 3px dashed #ddd;
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.upload-area:hover {
    border-color: #0048ff;
    background: rgba(0, 123, 255, 0.05);
}

.upload-area.has-image {
    border-style: solid;
    border-color: #0048ff;
}

.upload-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.upload-icon {
    font-size: 2rem;
    color: #ddd;
}

.upload-text {
    color: #666;
    font-size: 0.9rem;
}

.upload-input {
    display: none;
}

/* Navigation Buttons */
.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    gap: 1rem;
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
}

.btn-secondary:hover {
    background: #5a6268;
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.step-content {
    animation: fadeIn 0.3s ease-in;
}

/* Responsive Design */
@media (max-width: 768px) {
    /*.auth-page {*/
    /*    padding: 1rem;*/
    /*}*/
    
    .auth-card {
        border-radius: 10px;
    }
    
    .auth-header,
    .auth-form {
        padding: 1.5rem;
    }
    
    .auth-footer {
        padding: 1rem 1.5rem 1.5rem;
    }
    
    /*.registration-steps {*/
    /*    flex-wrap: wrap;*/
    /*    gap: 0.5rem;*/
    /*}*/
    
    .step {
        display: block;
        margin: 0.25rem;
        padding: 0.4rem 0.8rem;
        font-size: 0.5rem;
    }
    
    .form-navigation {
        flex-direction: column;
    }
    
    .form-options {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .auth-header h1 {
        font-size: 1.5rem;
    }
    
    .form-control {
        padding: 0.75rem;
        font-size: 0.95rem;
    }
    
    .btn-full {
        padding: 0.875rem;
        font-size: 1rem;
    }
    
    .upload-area {
        width: 100px;
        height: 100px;
    }
    
    .phone-input {
        flex-direction: column;
    }
    
    .country-code {
        flex: none;
    }
}

/* Loading States */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 3px solid transparent;
    border-top: 3px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    color: white;
}

/* Error States */
.form-control.error {
    border-color: #dc3545;
    background: #fff5f5;
}

.form-control.error:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.field-error {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Success States */
.form-control.success {
    border-color: #28a745;
    background: #f8fff8;
}

.field-success {
    color: #28a745;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}