/* AUTH PAGES STYLES */

.auth-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    font-family: 'Poppins', sans-serif;
}

.auth-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.auth-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
}

.logo-tagline {
    font-size: 0.875rem;
    color: #666;
}

.back-home {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: 2px solid #667eea;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.back-home:hover {
    background: #667eea;
    color: white;
}

.auth-main {
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 100px);
}

.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    width: 100%;
}

.auth-card {
    background: white;
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.auth-header h1 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: #666;
    margin-bottom: 2rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select {
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-hint {
    font-size: 0.875rem;
    color: #666;
}

.password-input {
    position: relative;
}

.password-input input {
    width: 100%;
    padding-right: 50px;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 0.5rem;
}

.password-strength {
    margin-top: 0.5rem;
}

.strength-bar {
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.25rem;
}

.strength-bar::after {
    content: '';
    display: block;
    height: 100%;
    width: 0;
    background: #ff4757;
    transition: width 0.3s ease, background 0.3s ease;
}

.strength-text {
    font-size: 0.75rem;
    color: #666;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-label input {
    margin-top: 0.25rem;
}

.terms-group {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.btn-block {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
}

.btn-lg {
    padding: 1.25rem;
    font-size: 1.1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.btn-google {
    background: white;
    color: #333;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-google:hover {
    border-color: #667eea;
    color: #667eea;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: #666;
    margin: 1rem 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e0e0e0;
}

.divider span {
    padding: 0 1rem;
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    color: #666;
}

.auth-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.small-text {
    font-size: 0.875rem;
    margin-top: 1rem;
}

/* Sidebar Styles */
.auth-sidebar {
    background: white;
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.auth-sidebar h2 {
    color: #333;
    margin-bottom: 2rem;
    font-size: 1.75rem;
}

.benefits-list,
.security-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.benefit-item,
.security-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.benefit-icon,
.security-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.benefit-content h3,
.security-content h3 {
    color: #333;
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.benefit-content p,
.security-content p {
    color: #666;
    font-size: 0.9rem;
}

.stats-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    padding: 1.5rem;
    color: white;
    margin-bottom: 2rem;
}

.stats-section h3 {
    color: white;
    margin-bottom: 1rem;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.75rem;
    opacity: 0.9;
}

.quick-links ul {
    list-style: none;
    padding: 0;
}

.quick-links li {
    margin-bottom: 0.75rem;
}

.quick-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.quick-links a:hover {
    color: #764ba2;
}

.verification-notice {
    background: #e8f4ff;
    border: 2px solid #667eea;
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.verification-notice h3 {
    color: #667eea;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.verification-notice p {
    color: #333;
    margin-bottom: 1rem;
}

.verification-notice ul {
    list-style: none;
    padding: 0;
}

.verification-notice li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: #666;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.toast {
    background: white;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transform: translateX(100%);
    opacity: 0;
    animation: slideIn 0.3s ease forwards;
}

@keyframes slideIn {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-success {
    border-left: 4px solid #4CAF50;
}

.toast-error {
    border-left: 4px solid #f44336;
}

.toast-warning {
    border-left: 4px solid #ff9800;
}

.toast-info {
    border-left: 4px solid #2196F3;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .auth-container {
        grid-template-columns: 1fr;
        max-width: 600px;
    }
    
    .auth-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .auth-header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .auth-main {
        padding: 1rem;
    }
    
    .auth-card,
    .auth-sidebar {
        padding: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Loading State */
.loading {
    position: relative;
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid #667eea;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Registration Steps */
.registration-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    padding: 20px 0;
    border-bottom: 1px solid #eef2f6;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
}

.step:not(:last-child):before {
    content: '';
    position: absolute;
    top: 15px;
    right: -50%;
    width: 100%;
    height: 2px;
    background: #e0e7ff;
    z-index: 1;
}

.step.active:not(:last-child):before {
    background: #2563eb;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #eef2f6;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 8px;
    position: relative;
    z-index: 2;
}

.step.active .step-number {
    background: #2563eb;
    color: white;
}

.step-label {
    font-size: 14px;
    color: #64748b;
}

.step.active .step-label {
    color: #2563eb;
    font-weight: 500;
}

/* Document Upload Section */
.document-upload-header {
    text-align: center;
    margin-bottom: 30px;
}

.document-upload-header h2 {
    font-size: 24px;
    color: #1e293b;
    margin-bottom: 10px;
}

.document-upload-header p {
    color: #64748b;
    font-size: 15px;
}

.upload-group {
    margin-bottom: 30px;
}

.upload-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 10px;
}

.upload-group label i {
    color: #2563eb;
}

.upload-area {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8fafc;
    position: relative;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-area:hover {
    border-color: #2563eb;
    background: #f0f9ff;
}

.upload-area.dragover {
    border-color: #2563eb;
    background: #eff6ff;
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.upload-content i {
    font-size: 40px;
    color: #2563eb;
}

.upload-content p {
    font-size: 16px;
    color: #1e293b;
    margin: 0;
}

.upload-content p span {
    color: #2563eb;
    font-weight: 600;
    text-decoration: underline;
}

.upload-content small {
    color: #64748b;
    font-size: 13px;
}

.upload-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    height: 100%;
}

.upload-preview img {
    max-width: 100%;
    max-height: 150px;
    border-radius: 8px;
    object-fit: contain;
}

.remove-upload {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ef4444;
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.remove-upload:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.upload-requirements {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.upload-requirements span {
    font-size: 12px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 5px;
}

.upload-requirements span i {
    color: #10b981;
    font-size: 12px;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.form-actions .btn-secondary,
.form-actions .btn-primary {
    flex: 1;
}

.btn-secondary {
    background: white;
    color: #1e293b;
    border: 2px solid #e2e8f0;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #f8fafc;
    border-color: #2563eb;
    color: #2563eb;
}

/* Document Consent */
.document-consent {
    margin: 25px 0;
    padding: 20px;
    background: #fef9e7;
    border-radius: 8px;
    border-left: 4px solid #f59e0b;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #1e293b;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 3px;
}

/* Verification Status */
.verification-status {
    text-align: center;
    padding: 20px 0;
}

.verification-icon {
    width: 80px;
    height: 80px;
    background: #eff6ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.verification-icon i {
    font-size: 40px;
    color: #2563eb;
}

.verification-status h2 {
    font-size: 28px;
    color: #1e293b;
    margin-bottom: 10px;
}

.verification-status p {
    color: #64748b;
    font-size: 16px;
    margin-bottom: 30px;
}

.verification-timeline {
    max-width: 400px;
    margin: 30px auto;
    text-align: left;
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #eef2f6;
}

.timeline-item i {
    width: 24px;
    text-align: center;
    color: #94a3b8;
}

.timeline-item.completed i {
    color: #10b981;
}

.timeline-item.active i {
    color: #2563eb;
}

.timeline-item.active span {
    color: #2563eb;
    font-weight: 600;
}

/* Verification Badge */
.verification-badge {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f0fdf4;
    border-radius: 8px;
    margin-top: 20px;
}

.verification-badge i {
    font-size: 28px;
    color: #10b981;
}

.verification-badge strong {
    display: block;
    color: #1e293b;
    font-size: 16px;
}

.verification-badge span {
    color: #64748b;
    font-size: 13px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .upload-requirements {
        flex-direction: column;
        gap: 5px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .step-label {
        font-size: 12px;
    }
    
    .verification-status h2 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .registration-steps {
        padding: 15px 0;
    }
    
    .step-number {
        width: 28px;
        height: 28px;
        font-size: 13px;
    }
    
    .upload-area {
        padding: 20px;
    }
}

/* User Menu Styles */
.user-menu {
    margin-left: auto;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem;
    background: white;
    border-radius: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
}

.user-email {
    font-size: 0.75rem;
    color: #666;
}

.logout-btn {
    background: none;
    border: none;
    color: #f56565;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.logout-btn:hover {
    background: #fff5f5;
    color: #c53030;
}

/* Responsive */
@media (max-width: 768px) {
    .user-info {
        padding: 0.25rem;
    }
    
    .user-details {
        display: none;
    }
    
    .logout-btn span {
        display: none;
    }
}


/* User Menu Styles (add to auth-pages.css) */
.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

.login-btn, .register-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.login-btn {
    color: #667eea;
    border: 2px solid #667eea;
    background: transparent;
}

.login-btn:hover {
    background: #667eea;
    color: white;
}

.register-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: 2px solid transparent;
}

.register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem;
    background: white;
    border-radius: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
}

.user-email {
    font-size: 0.75rem;
    color: #666;
}

.logout-btn {
    background: none;
    border: none;
    color: #f56565;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.logout-btn:hover {
    background: #fff5f5;
    color: #c53030;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }
    
    .main-nav li {
        width: 100%;
    }
    
    .main-nav a {
        display: block;
        padding: 0.75rem 1rem;
    }
    
    .user-info {
        padding: 0.25rem;
    }
    
    .user-details {
        display: none;
    }
    
    .logout-btn span {
        display: none;
    }
}