/* Sign In/Sign Up Page Styles */
:root {
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
    --gradient-start: #4361ee;
    --gradient-end: #3a0ca3;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
    direction: rtl;
}

.signin-page {
    padding: 40px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.signin-card {
    background: white;
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.back-home {
    position: absolute;
    top: 25px;
    left: 25px;
    z-index: 10;
}

.back-home a {
    display: flex;
    align-items: center;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.back-home a:hover {
    color: var(--primary-color);
}

.back-home i {
    margin-right: 8px;
    font-size: 1.1rem;
}

/* Progress Steps */
.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
    padding: 0 20px;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 24px;
    right: 10%;
    left: 10%;
    height: 2px;
    background-color: #e9ecef;
    z-index: 1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #e9ecef;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 10px;
    border: 3px solid white;
    transition: var(--transition);
}

.step.active .step-number {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}

.step-label {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 600;
    text-align: center;
}

.step.active .step-label {
    color: var(--primary-color);
}

/* Form Content */
.signin-right {
    padding: 50px 40px;
}

.signin-header {
    text-align: center;
    margin-bottom: 40px;
}

.signin-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.signin-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    background-color: #f8f9fa;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
    background-color: white;
    outline: none;
}

.form-control::placeholder {
    color: #adb5bd;
}

/* Password Input */
.password-input {
    position: relative;
}

.toggle-password {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 5px;
    transition: var(--transition);
}

.toggle-password:hover {
    color: var(--primary-color);
}

/* Payment Options */
.payment-options {
    margin: 30px 0;
    padding: 25px;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.03), rgba(58, 12, 163, 0.03));
    border-radius: 15px;
    border: 2px solid #e9ecef;
}

.payment-options h5 {
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1.2rem;
}

.payment-method {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.payment-method:hover {
    border-color: var(--primary-color);
    transform: translateX(-5px);
}

.payment-method.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.05), rgba(58, 12, 163, 0.05));
}

.payment-method.selected .payment-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 50%;
    transform: translate(50%, -50%);
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 50%;
}

.payment-header {
    display: flex;
    align-items: center;
}

.payment-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.1), rgba(58, 12, 163, 0.1));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-left: 20px;
}

.payment-title {
    flex: 1;
}

.payment-title h5 {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.payment-title p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

.payment-radio {
    width: 24px;
    height: 24px;
    border: 2px solid #dee2e6;
    border-radius: 50%;
    position: relative;
}

/* Submit Button */
.signin-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border: none;
    border-radius: 12px;
    color: white;
    font-family: 'Cairo', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.signin-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(67, 97, 238, 0.3);
}

.signin-btn:active {
    transform: translateY(-1px);
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    margin: 30px 0;
    color: var(--text-light);
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: #e9ecef;
}

.divider span {
    padding: 0 15px;
    font-size: 0.9rem;
}

/* Social Login */
.social-login {
    margin-bottom: 30px;
}

.social-btn {
    width: 100%;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    background: white;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.social-btn:hover {
    border-color: #dc3545;
    background-color: rgba(220, 53, 69, 0.02);
}

/* Sign In Footer */
.signin-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.signin-footer p {
    color: var(--text-light);
    margin: 0;
}

.signin-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
}

.signin-footer a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 992px) {
    .signin-card {
        margin: 20px;
    }
    
    .signin-right {
        padding: 40px 30px;
    }
    
    .progress-steps::before {
        right: 15%;
        left: 15%;
    }
}

@media (max-width: 768px) {
    .signin-page {
        padding: 20px 0;
    }
    
    .signin-right {
        padding: 30px 20px;
    }
    
    .signin-header h2 {
        font-size: 1.8rem;
    }
    
    .progress-steps {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .progress-steps::before {
        display: none;
    }
    
    .step {
        width: 100%;
        flex-direction: row;
        justify-content: flex-start;
        gap: 15px;
    }
    
    .step-number {
        margin-bottom: 0;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .payment-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .payment-icon {
        margin-left: 0;
    }
}

@media (max-width: 576px) {
    .signin-card {
        border-radius: 20px;
    }
    
    .back-home {
        position: relative;
        top: 0;
        left: 0;
        margin-bottom: 20px;
        text-align: right;
    }
    
    .back-home a {
        justify-content: flex-end;
    }
    
    .payment-options {
        padding: 20px 15px;
    }
}

/* Form Validation Styles */
.form-control.invalid {
    border-color: #dc3545;
}

.form-control.valid {
    border-color: #28a745;
}

.validation-message {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

.validation-message.show {
    display: block;
}

/* Loading State */
.signin-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.signin-btn.loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Success Message */
.success-message {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(40, 167, 69, 0.05));
    border: 2px solid #28a745;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin-top: 20px;
    display: none;
}

.success-message.show {
    display: block;
    animation: slideIn 0.5s ease-out;
}

.success-message i {
    color: #28a745;
    font-size: 2.5rem;
    margin-bottom: 15px;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 10px;
    border: 1px solid #f5c6cb;
    font-size: 14px;
}