/**
 * ========================================
 * صفحات المصادقة - Auth Pages
 * ========================================
 * تنسيقات صفحات تسجيل الدخول والتسجيل
 */

/* Auth Page Body */
.auth-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    padding: 20px 0;
}

.auth-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.5;
}

/* Auth Container */
.auth-container {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    max-width: 480px;
    width: 100%;
    margin: 20px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.auth-container-wide {
    max-width: 650px;
}

/* Auth Header */
.auth-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 24px 24px 0 0;
    padding: 50px 40px 40px;
    text-align: center;
    position: relative;
}

.auth-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 30px;
    background: white;
    border-radius: 30px 30px 0 0;
}

/* Logo Container */
.auth-logo {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.auth-logo img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.auth-logo i {
    font-size: 50px;
    opacity: 0.95;
}

/* Auth Title */
.auth-header h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.auth-header p {
    font-size: 1.05rem;
    opacity: 0.95;
    margin: 0;
}

/* Auth Body */
.auth-body {
    padding: 50px 40px 40px;
}

/* Form Elements */
.auth-form .form-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 10px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-form .form-control {
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    padding: 14px 18px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f9fafb;
}

.auth-form .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    background: white;
}

.auth-form .form-control::placeholder {
    color: #9ca3af;
}

/* Submit Button */
.btn-auth {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    padding: 16px;
    font-size: 1.05rem;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-auth::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-auth:hover::before {
    left: 100%;
}

.btn-auth:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.4);
}

.btn-auth:active {
    transform: translateY(-1px);
}

/* Alert Messages */
.auth-alert {
    border-radius: 12px;
    border: none;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.auth-alert i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Footer Links */
.auth-footer {
    text-align: center;
    margin-top: 35px;
    padding-top: 25px;
    border-top: 2px solid #f3f4f6;
}

.auth-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    margin: 0 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.auth-footer a:hover {
    color: #764ba2;
    transform: translateY(-2px);
}

/* Forgot Password Link */
.forgot-link {
    color: #667eea;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.forgot-link:hover {
    color: #764ba2;
}

/* Features List (for register page) */
.features-list {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0fdf4 100%);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    border: 2px solid #e5e7eb;
}

.features-list h6 {
    color: #374151;
    font-weight: 700;
    margin-bottom: 15px;
}

.features-list ul {
    margin: 0;
    padding: 0;
}

.features-list li {
    margin-bottom: 10px;
    color: #4b5563;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.features-list li:last-child {
    margin-bottom: 0;
}

.features-list i {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.features-list i.text-success {
    color: #22c55e !important;
}

.features-list i.text-danger {
    color: #ef4444 !important;
}

.features-list i.text-warning {
    color: #f59e0b !important;
}

/* Plan Badge */
.plan-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Checkbox Styling */
.form-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex-direction: row-reverse;
}

.auth-checkbox {
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
    flex-shrink: 0;
}

.auth-checkbox-label {
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #374151;
    text-align: right;
    margin: 0;
    flex: 1;
}

.auth-checkbox-label a {
    color: #667eea;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.auth-checkbox-label a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.auth-terms-note {
    padding-right: 32px;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 576px) {
    .auth-container {
        margin: 10px;
        border-radius: 20px;
    }
    
    .auth-header {
        padding: 40px 30px 30px;
        border-radius: 20px 20px 0 0;
    }
    
    .auth-header h2 {
        font-size: 1.6rem;
    }
    
    .auth-header p {
        font-size: 0.95rem;
    }
    
    .auth-logo {
        width: 80px;
        height: 80px;
    }
    
    .auth-logo img,
    .auth-logo i {
        font-size: 40px;
        width: 50px;
        height: 50px;
    }
    
    .auth-body {
        padding: 40px 25px 30px;
    }
    
    .auth-footer a {
        display: block;
        margin: 10px 0;
    }
    
    .features-list {
        padding: 20px;
    }
}

/* Loading State */
.btn-auth.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-auth.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Verify Email Notice Page */
.verify-container {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 100%;
    margin: 20px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.verify-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 24px 24px 0 0;
    padding: 50px 40px 40px;
    text-align: center;
    position: relative;
}

.verify-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 30px;
    background: white;
    border-radius: 30px 30px 0 0;
}

.verify-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.verify-icon i {
    font-size: 50px;
    opacity: 0.95;
}

.verify-header h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.verify-header p {
    font-size: 1.05rem;
    opacity: 0.95;
    margin: 0;
}

.verify-body {
    padding: 50px 40px 40px;
}

.verify-body .lead {
    font-size: 1.1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 20px;
}

.email-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #f8f9ff 0%, #e0e7ff 100%);
    border: 2px solid #667eea;
    border-radius: 50px;
    padding: 12px 24px;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    margin-bottom: 30px;
}

.steps-list {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0fdf4 100%);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    border: 2px solid #e5e7eb;
}

.steps-list h6 {
    color: #374151;
    font-weight: 700;
    margin-bottom: 15px;
}

.steps-list ol {
    margin: 0;
    padding-right: 20px;
}

.steps-list li {
    margin-bottom: 10px;
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.6;
}

.steps-list li:last-child {
    margin-bottom: 0;
}

.alert-info {
    background: linear-gradient(135deg, #e0f2fe 0%, #b3e5fc 100%);
    border: 2px solid #0277bd;
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    color: #01579b;
    box-shadow: 0 4px 12px rgba(2, 119, 189, 0.15);
    margin-bottom: 25px;
}

.alert-info i {
    font-size: 1.2rem;
    flex-shrink: 0;
    color: #0277bd;
}

.btn-resend {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border: none;
    border-radius: 12px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-resend:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4);
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
}

/* Responsive for verify page */
@media (max-width: 576px) {
    .verify-container {
        margin: 10px;
        border-radius: 20px;
    }
    
    .verify-header {
        padding: 40px 30px 30px;
        border-radius: 20px 20px 0 0;
    }
    
    .verify-header h2 {
        font-size: 1.6rem;
    }
    
    .verify-icon {
        width: 80px;
        height: 80px;
    }
    
    .verify-icon i {
        font-size: 40px;
    }
    
    .verify-body {
        padding: 40px 25px 30px;
    }
    
    .email-badge {
        font-size: 14px;
        padding: 10px 20px;
    }
    
    .steps-list {
        padding: 20px;
    }
    
    .alert-info {
        padding: 14px 16px;
        font-size: 0.9rem;
    }
}
