/**
 * Ontech ERP - Shared Auth Styles
 * Common styles for standalone authentication pages
 */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    background: #fafafa;
}

/* Dark gradient background variant */
body.bg-gradient {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

/* Navbar */
.auth-navbar {
    padding: 1rem 2rem;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.auth-navbar-brand img {
    height: 36px;
}

.auth-nav-link {
    color: #64748b;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
}

.auth-nav-link:hover {
    color: #0f172a;
}

/* Container */
.auth-container {
    max-width: 480px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

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

.auth-container.medium {
    max-width: 800px;
}

/* Cards */
.auth-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
}

.auth-card.shadow {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: none;
}

/* Card Header with dark background */
.auth-card-header {
    background: #0f172a;
    color: #fff;
    padding: 2rem;
    text-align: center;
    border-radius: 12px 12px 0 0;
    margin: -2rem -2rem 2rem -2rem;
}

.auth-card-header img {
    height: 40px;
    margin-bottom: 1rem;
}

.auth-card-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.auth-card-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
}

/* Icon Box */
.auth-icon {
    width: 48px;
    height: 48px;
    background: #f1f5f9;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.auth-icon i {
    font-size: 1.25rem;
    color: #475569;
}

/* Typography */
.auth-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.375rem;
}

.auth-subtitle {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 1.5rem;
}

/* Form Styles */
.auth-form-group {
    margin-bottom: 1.25rem;
}

.auth-form-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: #475569;
    margin-bottom: 0.375rem;
    display: block;
}

.auth-form-label .required {
    color: #ef4444;
}

.auth-form-control {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.auth-form-control:focus {
    border-color: #0f172a;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.1);
    outline: none;
}

.auth-form-control::placeholder {
    color: #94a3b8;
}

.auth-form-text {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.25rem;
}

/* Password Field */
.auth-password-wrapper {
    position: relative;
}

.auth-password-wrapper .auth-form-control {
    padding-right: 3rem;
}

.auth-password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 0;
}

.auth-password-toggle:hover {
    color: #0f172a;
}

/* Password Strength Bar */
.auth-password-strength {
    height: 3px;
    background: #e2e8f0;
    border-radius: 2px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.auth-password-strength-bar {
    height: 100%;
    transition: all 0.3s;
    width: 0;
}

.auth-password-strength-bar.weak { background: #ef4444; width: 25%; }
.auth-password-strength-bar.fair { background: #f97316; width: 50%; }
.auth-password-strength-bar.good { background: #eab308; width: 75%; }
.auth-password-strength-bar.strong { background: #22c55e; width: 100%; }

/* Buttons */
.auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    border: none;
}

.auth-btn-primary {
    background: #0f172a;
    color: #fff;
}

.auth-btn-primary:hover {
    background: #1e293b;
    color: #fff;
}

.auth-btn-secondary {
    background: #fff;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.auth-btn-secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

.auth-btn-block {
    width: 100%;
}

/* Alerts */
.auth-alert {
    padding: 0.875rem;
    border-radius: 8px;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-alert-success {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.auth-alert-danger {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.auth-alert-warning {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
}

.auth-alert-info {
    background: #f0f9ff;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

/* Info Notice */
.auth-info-notice {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    padding: 0.875rem;
    margin-bottom: 1.5rem;
    display: flex;
    gap: 0.625rem;
    font-size: 0.8rem;
    color: #0369a1;
}

.auth-info-notice i {
    font-size: 1rem;
    flex-shrink: 0;
}

/* Footer Links */
.auth-footer-links {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
    font-size: 0.85rem;
    color: #64748b;
}

.auth-footer-links a {
    color: #0f172a;
    font-weight: 500;
    text-decoration: none;
}

.auth-footer-links a:hover {
    text-decoration: underline;
}

/* Stepper */
.auth-stepper {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    gap: 0;
}

.auth-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
}

.auth-step:first-child {
    border-radius: 8px 0 0 8px;
}

.auth-step:last-child {
    border-radius: 0 8px 8px 0;
}

.auth-step.active {
    background: #0f172a;
    color: #fff;
    border-color: #0f172a;
}

.auth-step.completed {
    background: #10b981;
    color: #fff;
    border-color: #10b981;
}

.auth-step-number {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.auth-step.active .auth-step-number,
.auth-step.completed .auth-step-number {
    background: rgba(255, 255, 255, 0.2);
}

/* Progress Steps (circular) */
.auth-steps-circular {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-top: 1.5rem;
}

.auth-step-circle {
    display: flex;
    align-items: center;
}

.auth-step-circle-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
}

.auth-step-circle.active .auth-step-circle-num {
    background: #3b82f6;
}

.auth-step-circle.completed .auth-step-circle-num {
    background: #10b981;
}

.auth-step-line {
    width: 60px;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 0.5rem;
}

.auth-step-circle.completed + .auth-step-circle .auth-step-line {
    background: #10b981;
}

/* Form Sections */
.auth-form-section {
    margin-bottom: 2rem;
}

.auth-form-section:last-child {
    margin-bottom: 0;
}

.auth-form-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
}

/* Form Actions */
.auth-form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

/* Checkbox Tags */
.auth-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.auth-checkbox-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.75rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.auth-checkbox-tag:hover {
    border-color: #cbd5e1;
}

.auth-checkbox-tag input {
    width: 14px;
    height: 14px;
}

.auth-checkbox-tag.checked {
    background: #0f172a;
    color: #fff;
    border-color: #0f172a;
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 1rem 0;
    color: #94a3b8;
    font-size: 0.875rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.auth-divider span {
    padding: 0 1rem;
}

/* Info Row (for status display) */
.auth-info-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.auth-info-row:last-child {
    border-bottom: none;
}

.auth-info-label {
    color: #64748b;
    font-size: 0.8rem;
}

.auth-info-value {
    font-weight: 500;
    color: #1e293b;
    font-size: 0.875rem;
}

/* Status Result Cards */
.auth-status-result {
    margin-top: 1.5rem;
    padding: 1.5rem;
    border-radius: 12px;
}

.auth-status-pending { background: #fef3c7; border: 1px solid #fcd34d; }
.auth-status-reviewing { background: #dbeafe; border: 1px solid #93c5fd; }
.auth-status-shortlisted { background: #d1fae5; border: 1px solid #6ee7b7; }
.auth-status-interview { background: #e0e7ff; border: 1px solid #a5b4fc; }
.auth-status-offered { background: #dcfce7; border: 1px solid #86efac; }
.auth-status-hired { background: #dcfce7; border: 1px solid #22c55e; }
.auth-status-rejected { background: #fee2e2; border: 1px solid #fca5a5; }

/* Back Link (for gradient backgrounds) */
.auth-back-link {
    text-align: center;
    margin-top: 1.5rem;
}

.auth-back-link a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.875rem;
}

.auth-back-link a:hover {
    color: #fff;
}

/* Type Selection Cards */
.auth-type-selection {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.auth-type-card {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.auth-type-card:hover {
    border-color: #0f172a;
}

.auth-type-card.selected {
    border-color: #3b82f6;
    background: #eff6ff;
}

.auth-type-card input {
    display: none;
}

.auth-type-card i {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.auth-type-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.auth-type-card p {
    font-size: 0.8rem;
    color: #64748b;
    margin: 0;
}

/* Info Box */
.auth-info-box {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.auth-info-box h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #0369a1;
    margin-bottom: 0.5rem;
}

.auth-info-box p {
    font-size: 0.8rem;
    color: #0c4a6e;
    margin: 0;
}

.auth-info-box.success {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.auth-info-box.success h4 {
    color: #166534;
}

.auth-info-box.success p {
    color: #15803d;
}

/* Page Header */
.auth-page-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-page-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.auth-page-header p {
    color: #64748b;
}

/* Form Row Grids */
.auth-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.auth-form-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
}

/* Step Content */
.auth-step-content {
    display: none;
}

.auth-step-content.active {
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .auth-container {
        padding: 2rem 1rem;
    }

    .auth-stepper {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .auth-step {
        border-radius: 6px !important;
        flex: 1 1 45%;
        justify-content: center;
    }

    .auth-form-row,
    .auth-form-row-3 {
        grid-template-columns: 1fr;
    }

    .auth-type-selection {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .auth-container {
        padding: 2rem 1rem;
    }
}

/* ===========================================
   Login Page - Two Column Layout
   =========================================== */

.auth-login-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.auth-login-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 4rem;
    align-items: start;
}

/* Info Section (Left Column) */
.auth-login-info {
    padding-top: 2rem;
}

.auth-login-info h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.auth-login-info h1 span {
    background: linear-gradient(135deg, #e67e22, #d35400);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-login-info > p {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Features List */
.auth-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.auth-features-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0;
    font-size: 0.9rem;
    color: #475569;
}

.auth-features-list li i {
    color: #22c55e;
    font-size: 1rem;
}

/* Contact Card */
.auth-contact-card {
    background: #0f172a;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    color: #fff;
}

.auth-contact-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.auth-contact-card p {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 1rem;
}

.auth-contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.625rem;
    background: #e67e22;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.auth-contact-btn:hover {
    background: #d35400;
    color: #fff;
}

/* Login Card (Right Column) */
.auth-login-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
}

.auth-login-card h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.25rem;
}

.auth-login-card .auth-subtitle {
    margin-bottom: 1.5rem;
}

/* Form Options Row */
.auth-form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
}

.auth-form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-form-check-input {
    width: 1rem;
    height: 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    cursor: pointer;
}

.auth-form-check-input:checked {
    background-color: #0f172a;
    border-color: #0f172a;
}

.auth-form-check-label {
    color: #64748b;
    cursor: pointer;
}

.auth-forgot-link {
    color: #64748b;
    text-decoration: none;
    font-size: 0.85rem;
}

.auth-forgot-link:hover {
    color: #0f172a;
    text-decoration: underline;
}

/* Register Link */
.auth-register-link {
    text-align: center;
    font-size: 0.875rem;
    color: #64748b;
}

.auth-register-link a {
    color: #0f172a;
    font-weight: 500;
    text-decoration: none;
}

.auth-register-link a:hover {
    text-decoration: underline;
}

/* Login Page Responsive */
@media (max-width: 968px) {
    .auth-login-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .auth-login-info {
        padding-top: 0;
        order: 2;
    }

    .auth-login-card {
        order: 1;
    }

    .auth-login-info h1 {
        font-size: 1.75rem;
    }
}

/* ===========================================
   Register Page - Multi-Tab Layout
   =========================================== */

.auth-register-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.auth-register-header {
    margin-bottom: 2rem;
}

.auth-register-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.auth-register-header p {
    color: #64748b;
}

.auth-register-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 3rem;
    align-items: start;
}

/* Tab Navigation */
.auth-tab-nav {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 1rem;
}

.auth-tab-btn {
    padding: 0.625rem 1rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-tab-btn:hover {
    border-color: #cbd5e1;
    color: #0f172a;
}

.auth-tab-btn.active {
    background: #0f172a;
    color: #fff;
    border-color: #0f172a;
}

/* Form Card */
.auth-form-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
}

/* Form Notice/Info Box */
.auth-form-notice {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: #475569;
}

.auth-form-notice strong {
    color: #0f172a;
}

.auth-form-notice.info {
    background: #eff6ff;
    border-color: #93c5fd;
}

.auth-form-notice.info strong {
    color: #1e40af;
}

.auth-form-notice.info span {
    color: #3b82f6;
}

.auth-form-notice.purple {
    background: #faf5ff;
    border-color: #c4b5fd;
}

.auth-form-notice.purple strong {
    color: #6b21a8;
}

.auth-form-notice.purple span {
    color: #7c3aed;
}

.auth-form-notice.warning {
    background: #fef3c7;
    border-color: #fcd34d;
}

.auth-form-notice.warning strong {
    color: #92400e;
}

.auth-form-notice.warning span {
    color: #b45309;
}

/* Tab Panels */
.auth-tab-panel {
    display: none;
}

.auth-tab-panel.active {
    display: block;
}

/* Consultant Type Cards */
.auth-type-cards {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.auth-type-card {
    flex: 1;
    min-width: 140px;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
    background: #fff;
}

.auth-type-card:hover {
    border-color: #cbd5e1;
}

.auth-type-card.selected {
    border-color: #6b21a8;
    background: #faf5ff;
}

.auth-type-card input {
    display: none;
}

.auth-type-card i {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.auth-type-card i.sales { color: #10b981; }
.auth-type-card i.technical { color: #3b82f6; }
.auth-type-card i.hybrid { color: #8b5cf6; }

.auth-type-card strong {
    display: block;
    font-size: 0.875rem;
}

.auth-type-card small {
    color: #64748b;
}

/* File Upload */
.auth-file-upload {
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.auth-file-upload:hover {
    border-color: #0f172a;
    background: #f8fafc;
}

.auth-file-upload input {
    display: none;
}

.auth-file-upload i {
    font-size: 2rem;
    color: #94a3b8;
}

.auth-file-upload p {
    margin: 0.5rem 0 0;
    color: #64748b;
    font-size: 0.875rem;
}

/* Sidebar */
.auth-sidebar {
    position: sticky;
    top: 2rem;
}

.auth-sidebar-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
    text-align: center;
}

.auth-sidebar-card p {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 0.75rem;
}

.auth-sidebar-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: #fff;
    color: #0f172a;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.auth-sidebar-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

/* Contact Info in Sidebar */
.auth-contact-info {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-contact-info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 0.75rem;
}

.auth-contact-info-item:last-child {
    margin-bottom: 0;
}

.auth-contact-info-item i {
    color: #e67e22;
    font-size: 1rem;
}

/* Conditional Fields */
.auth-conditional-fields {
    display: none;
}

.auth-conditional-fields.show {
    display: block;
}

/* Register Page Responsive */
@media (max-width: 968px) {
    .auth-register-grid {
        grid-template-columns: 1fr;
    }

    .auth-sidebar {
        position: static;
    }

    .auth-tab-nav {
        flex-wrap: wrap;
    }

    .auth-type-cards {
        flex-direction: column;
    }

    .auth-type-card {
        min-width: 100%;
    }
}

/* ===========================================
   Portal Registration - Wizard Style
   =========================================== */

/* Portal Container */
.auth-portal-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

/* Portal Card with shadow */
.auth-portal-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

/* Portal Header */
.auth-portal-header {
    background: #0f172a;
    color: #fff;
    padding: 2rem;
    text-align: center;
}

.auth-portal-header img {
    height: 40px;
    margin-bottom: 1rem;
}

.auth-portal-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.auth-portal-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
}

/* Portal Body */
.auth-portal-body {
    padding: 2rem;
}

/* Portal Footer */
.auth-portal-footer {
    text-align: center;
    padding: 1.5rem 2rem;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    font-size: 0.875rem;
    color: #64748b;
}

.auth-portal-footer a {
    color: #0f172a;
    font-weight: 500;
    text-decoration: none;
}

.auth-portal-footer a:hover {
    text-decoration: underline;
}

/* Portal Steps (circular in header) */
.auth-portal-steps {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-top: 1.5rem;
}

.auth-portal-step {
    display: flex;
    align-items: center;
}

.auth-portal-step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
}

.auth-portal-step.active .auth-portal-step-circle {
    background: #3b82f6;
}

.auth-portal-step.completed .auth-portal-step-circle {
    background: #10b981;
}

.auth-portal-step-line {
    width: 60px;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 0.5rem;
}

.auth-portal-step.completed .auth-portal-step-line {
    background: #10b981;
}

/* Section Title with icon */
.auth-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
    color: #0f172a;
}

.auth-section-title i {
    color: #64748b;
    margin-right: 0.5rem;
}

/* Type Selection Grid (3 columns for portal) */
.auth-portal-type-selection {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.auth-portal-type-card {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
}

.auth-portal-type-card:hover {
    border-color: #0f172a;
}

.auth-portal-type-card.selected {
    border-color: #3b82f6;
    background: #eff6ff;
}

.auth-portal-type-card input {
    display: none;
}

.auth-portal-type-card i {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    display: block;
}

.auth-portal-type-card.sales i { color: #10b981; }
.auth-portal-type-card.technical i { color: #3b82f6; }
.auth-portal-type-card.hybrid i { color: #8b5cf6; }

.auth-portal-type-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.auth-portal-type-card p {
    font-size: 0.8rem;
    color: #64748b;
    margin: 0;
}

/* Wizard Step Panels */
.auth-wizard-step {
    display: none;
}

.auth-wizard-step.active {
    display: block;
}

/* Navigation Buttons */
.auth-wizard-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

/* Conditional Fields */
.auth-sales-fields,
.auth-tech-fields {
    display: none;
}

.show-sales .auth-sales-fields {
    display: block;
}

.show-tech .auth-tech-fields {
    display: block;
}

/* Portal Alert Info Box */
.auth-portal-info {
    background: #dbeafe;
    color: #1e40af;
    padding: 0.875rem;
    border-radius: 8px;
    font-size: 0.875rem;
    margin-top: 1rem;
}

.auth-portal-info i {
    margin-right: 0.5rem;
}

.auth-portal-info strong {
    font-weight: 600;
}

/* Terms Checkbox */
.auth-terms-check {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.auth-terms-check input {
    margin-top: 0.125rem;
}

.auth-terms-check label {
    font-size: 0.875rem;
    color: #475569;
}

.auth-terms-check a {
    color: #0f172a;
    font-weight: 500;
}

/* Portal Responsive */
@media (max-width: 768px) {
    .auth-portal-container {
        padding: 1rem;
    }

    .auth-portal-type-selection {
        grid-template-columns: 1fr;
    }

    .auth-wizard-nav {
        flex-direction: column;
        gap: 0.75rem;
    }

    .auth-wizard-nav .btn {
        width: 100%;
    }
}

/* ===========================================
   Status Check Page Styles
   =========================================== */

/* Centered layout for status check (dark bg) */
.auth-status-centered {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-status-wrapper {
    width: 100%;
    max-width: 500px;
}

/* Status Card Header (with logo) */
.auth-status-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-status-header img {
    height: 40px;
    margin-bottom: 0.75rem;
}

.auth-status-header h1 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.25rem;
}

.auth-status-header p {
    font-size: 0.875rem;
    color: #64748b;
}

/* Status Result Cards */
.auth-result-card {
    display: none;
    margin-top: 1.5rem;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
}

.auth-result-card.show {
    display: block;
}

.auth-result-card.pending {
    background: #fef3c7;
    border: 1px solid #fcd34d;
}

.auth-result-card.approved {
    background: #dcfce7;
    border: 1px solid #86efac;
}

.auth-result-card.declined {
    background: #fee2e2;
    border: 1px solid #fca5a5;
}

.auth-result-card.not-found {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}

/* Result Icon Circle */
.auth-result-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
}

.auth-result-card.pending .auth-result-icon {
    background: #fcd34d;
    color: #92400e;
}

.auth-result-card.approved .auth-result-icon {
    background: #86efac;
    color: #166534;
}

.auth-result-card.declined .auth-result-icon {
    background: #fca5a5;
    color: #991b1b;
}

.auth-result-card.not-found .auth-result-icon {
    background: #e2e8f0;
    color: #64748b;
}

/* Result Text */
.auth-result-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.auth-result-card.pending .auth-result-title { color: #92400e; }
.auth-result-card.approved .auth-result-title { color: #166534; }
.auth-result-card.declined .auth-result-title { color: #991b1b; }
.auth-result-card.not-found .auth-result-title { color: #475569; }

.auth-result-message {
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.auth-result-card.pending .auth-result-message { color: #a16207; }
.auth-result-card.approved .auth-result-message { color: #15803d; }
.auth-result-card.declined .auth-result-message { color: #b91c1c; }
.auth-result-card.not-found .auth-result-message { color: #64748b; }

/* Result Details Box */
.auth-result-details {
    font-size: 0.8rem;
    color: #64748b;
    text-align: left;
    background: rgba(255, 255, 255, 0.5);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.auth-result-details p {
    margin: 0.25rem 0;
}

/* Result Action Button */
.auth-result-action {
    display: inline-block;
    padding: 0.625rem 1.25rem;
    background: #0f172a;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    margin-top: 1rem;
}

.auth-result-action:hover {
    background: #1e293b;
    color: #fff;
}

/* ===========================================
   Onboarding Page Styles
   =========================================== */

/* Onboarding Container */
.auth-onboarding-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

/* Welcome Banner */
.auth-welcome-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 16px;
    padding: 2rem;
    color: #fff;
    margin-bottom: 2rem;
}

.auth-welcome-banner h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.auth-welcome-banner p {
    color: #94a3b8;
    font-size: 0.875rem;
    margin: 0;
}

/* Progress Bar */
.auth-progress-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    height: 8px;
    margin-top: 1.5rem;
    overflow: hidden;
}

.auth-progress-fill {
    height: 100%;
    background: #10b981;
    border-radius: 8px;
    transition: width 0.3s ease;
}

.auth-progress-text {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 0.5rem;
}

/* Content Grid */
.auth-content-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
}

/* Onboarding Card */
.auth-onboard-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.auth-onboard-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-onboard-card-title i {
    color: #e67e22;
}

/* Document List */
.auth-document-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.auth-document-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.2s;
}

.auth-document-item:hover {
    border-color: #cbd5e1;
}

.auth-document-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.auth-document-icon {
    width: 40px;
    height: 40px;
    background: #e2e8f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
}

.auth-document-icon.uploaded {
    background: #dcfce7;
    color: #16a34a;
}

.auth-document-icon.required {
    background: #fef3c7;
    color: #d97706;
}

.auth-document-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: #0f172a;
}

.auth-document-desc {
    font-size: 0.75rem;
    color: #64748b;
}

.auth-document-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Status Badges */
.auth-status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
}

.auth-status-badge.pending {
    background: #fef3c7;
    color: #92400e;
}

.auth-status-badge.verified {
    background: #dcfce7;
    color: #166534;
}

.auth-status-badge.rejected {
    background: #fee2e2;
    color: #991b1b;
}

/* Upload Button */
.auth-btn-upload {
    padding: 0.375rem 0.75rem;
    background: #0f172a;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.auth-btn-upload:hover {
    background: #1e293b;
}

/* Task List */
.auth-task-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.auth-task-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 6px;
    font-size: 0.875rem;
}

.auth-task-item.completed {
    background: #f0fdf4;
}

.auth-task-item.completed .auth-task-text {
    color: #16a34a;
    text-decoration: line-through;
}

.auth-task-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.auth-task-checkbox.checked {
    background: #16a34a;
    border-color: #16a34a;
    color: #fff;
}

.auth-task-text {
    color: #475569;
}

/* Sidebar Card */
.auth-sidebar-onboard {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.auth-sidebar-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 1rem;
}

/* Status Indicator */
.auth-status-indicator {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #fef3c7;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.auth-status-indicator.approved {
    background: #dcfce7;
}

.auth-status-indicator.active {
    background: #dbeafe;
}

.auth-status-indicator i {
    font-size: 1.25rem;
    color: #d97706;
}

.auth-status-indicator.approved i {
    color: #16a34a;
}

.auth-status-indicator.active i {
    color: #2563eb;
}

.auth-status-indicator div {
    font-size: 0.875rem;
    color: #0f172a;
}

.auth-status-indicator small {
    color: #64748b;
    display: block;
}

/* Help Section */
.auth-help-section {
    border-top: 1px solid #e2e8f0;
    padding-top: 1rem;
    margin-top: 1rem;
}

.auth-help-section h4 {
    font-size: 0.8rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.auth-help-section p {
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 0.75rem;
}

.auth-help-section a {
    color: #e67e22;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Modal */
.auth-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.auth-modal-backdrop.show {
    display: flex;
}

.auth-modal-content {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
}

.auth-modal-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 1rem;
}

/* File Dropzone */
.auth-file-dropzone {
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.auth-file-dropzone:hover {
    border-color: #0f172a;
    background: #f8fafc;
}

.auth-file-dropzone.dragover {
    border-color: #10b981;
    background: #f0fdf4;
}

.auth-file-dropzone i {
    font-size: 2rem;
    color: #94a3b8;
    margin-bottom: 0.75rem;
}

.auth-file-dropzone p {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
}

.auth-file-dropzone input {
    display: none;
}

/* Modal Actions */
.auth-modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.auth-btn-cancel {
    padding: 0.625rem 1.25rem;
    background: #f1f5f9;
    color: #475569;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
}

.auth-btn-submit {
    padding: 0.625rem 1.25rem;
    background: #0f172a;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
}

.auth-btn-submit:disabled {
    background: #94a3b8;
    cursor: not-allowed;
}

/* Commission Table */
.auth-commission-table {
    font-size: 0.8rem;
    color: #475569;
}

.auth-commission-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.auth-commission-row:last-child {
    border-bottom: none;
}

.auth-commission-note {
    font-size: 0.7rem;
    color: #94a3b8;
    margin-top: 0.75rem;
}

/* Onboarding Responsive */
@media (max-width: 768px) {
    .auth-content-grid {
        grid-template-columns: 1fr;
    }

    .auth-onboarding-container {
        padding: 1rem;
    }
}
