/* =========== CSS RESET & BASE STYLES =========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #2c3e50;
    --primary-light: #3498db;
    --secondary: #e74c3c;
    --accent: #f39c12;
    --success: #27ae60;
    --warning: #f1c40f;
    --danger: #c0392b;
    --dark: #2c3e50;
    --dark-gray: #7f8c8d;
    --gray: #95a5a6;
    --light: #ecf0f1;
    --white: #ffffff;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
    --radius: 8px;
    --radius-sm: 4px;
}

body {
    background-color: #f8f9fa;
    color: var(--dark);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========== TYPOGRAPHY =========== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary);
}

/* =========== UTILITY CLASSES =========== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }
.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.align-center { align-items: center; }
.w-100 { width: 100%; }
.hidden { display: none !important; }
.visible { display: block !important; }

/* =========== BUTTONS =========== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-light);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary);
    color: white;
}

.btn-secondary {
    background-color: var(--light);
    color: var(--dark);
    border: 1px solid var(--gray);
}

.btn-secondary:hover {
    background-color: #e0e0e0;
}

.btn-accent {
    background-color: var(--accent);
    color: white;
}

.btn-accent:hover {
    background-color: #e67e22;
}

.btn-success {
    background-color: var(--success);
    color: white;
}

.btn-danger {
    background-color: var(--danger);
    color: white;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.125rem;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* =========== HEADER & NAVIGATION =========== */
.portal-header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 2rem;
    color: var(--primary-light);
}

.logo-text h1 {
    font-size: 1.5rem;
    margin-bottom: 0;
}

.logo-text span {
    color: var(--accent);
}

.logo-text p {
    font-size: 0.875rem;
    color: var(--dark-gray);
    margin: 0;
}

.nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-link {
    color: var(--dark);
    font-weight: 500;
}

.nav-link:hover {
    color: var(--primary-light);
}

.auth-buttons {
    display: flex;
    gap: 12px;
}

/* =========== USER DROPDOWN =========== */
.user-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: var(--white);
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius);
    z-index: 1001;
    margin-top: 8px;
    border: 1px solid var(--light);
}

.dropdown-content.show {
    display: block;
    animation: fadeIn 0.2s ease;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: var(--dark);
    text-decoration: none;
    transition: var(--transition);
    border-bottom: 1px solid var(--light);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: var(--light);
    color: var(--primary);
}

.dropdown-divider {
    height: 1px;
    background-color: var(--light);
    margin: 4px 0;
}

.dropdown-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 1000;
    display: none;
}

.dropdown-overlay.show {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========== HERO SECTION =========== */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 4rem 0;
    border-radius: 0 0 var(--radius) var(--radius);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* =========== SEARCH SECTION =========== */
.search-section {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-top: -2rem;
    position: relative;
    z-index: 10;
}

.search-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--light);
    padding-bottom: 1rem;
    overflow-x: auto;
}

.search-tab {
    padding: 10px 20px;
    background: none;
    border: none;
    border-radius: var(--radius) var(--radius) 0 0;
    cursor: pointer;
    font-weight: 500;
    color: var(--dark-gray);
    transition: var(--transition);
    white-space: nowrap;
}

.search-tab.active {
    background-color: var(--light);
    color: var(--primary);
    font-weight: 600;
}

.search-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    align-items: end;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--dark);
}

.form-control {
    padding: 12px 16px;
    border: 1px solid var(--gray);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* =========== TRANSPORT SECTION =========== */
.transport-section {
    padding: 4rem 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-top: 2rem;
}

.category-card {
    background-color: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.category-icon {
    font-size: 3rem;
    color: var(--primary-light);
    margin-bottom: 1rem;
}

.category-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.category-desc {
    color: var(--dark-gray);
    font-size: 0.875rem;
}

/* =========== CATEGORIES SECTION =========== */
.categories-section {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    color: var(--primary);
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--dark-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* =========== SERVICES SECTION =========== */
.services-section {
    padding: 4rem 0;
    background-color: var(--light);
}

.services-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.category-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 2rem;
}

.category-tab {
    padding: 8px 16px;
    background: none;
    border: 1px solid var(--gray);
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    white-space: nowrap;
    transition: var(--transition);
}

.category-tab.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.view-options {
    display: flex;
    gap: 8px;
}

.view-option {
    padding: 8px 12px;
    background: none;
    border: 1px solid var(--gray);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.view-option.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.service-card {
    background-color: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.service-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background-color: var(--accent);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.service-content {
    padding: 1.5rem;
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.service-title {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.service-location {
    color: var(--dark-gray);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.service-price {
    text-align: right;
}

.price-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.price-unit {
    font-size: 0.75rem;
    color: var(--dark-gray);
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1.5rem;
}

.feature-tag {
    background-color: var(--light);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: var(--dark-gray);
}

.service-actions {
    display: flex;
    gap: 8px;
}

/* =========== FOOTER =========== */
.portal-footer {
    background-color: var(--dark);
    color: white;
    padding: 4rem 0 2rem;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 2rem;
}

.footer-column h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #bdc3c7;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: #bdc3c7;
}

/* =========== MODAL =========== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background-color: var(--white);
    border-radius: var(--radius);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--light);
}

.modal-title {
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-gray);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--light);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* =========== LOADING & NOTIFICATION =========== */
.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid var(--light);
    border-top-color: var(--primary-light);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    grid-column: 1 / -1;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 3000;
    animation: slideIn 0.3s ease;
    max-width: 400px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.notification-success {
    background-color: var(--success);
    color: white;
}

.notification-error {
    background-color: var(--danger);
    color: white;
}

.notification-info {
    background-color: var(--primary-light);
    color: white;
}

.notification-warning {
    background-color: var(--warning);
    color: var(--dark);
}

.notification-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0;
    font-size: 1.25rem;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* =========== RESPONSIVE DESIGN =========== */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .search-form {
        grid-template-columns: 1fr;
    }
    
    .services-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .category-tabs {
        width: 100%;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .modal {
        width: 95%;
        margin: 10px;
    }
}
.loading-overlay {
    pointer-events: none;
}

.loading-overlay.active {
    pointer-events: auto;
}
.loading-overlay {
    pointer-events: none;
}

.loading-overlay.active {
    pointer-events: auto;
}
/* =========== AUTHENTICATION PAGES =========== */
.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.auth-left {
    background: linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.9)),
                url('/images/auth-bg.jpg') center/cover;
    color: var(--white);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.auth-right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--white);
}

.form-wrapper {
    width: 100%;
    max-width: 400px;
    animation: fadeIn 0.5s ease;
}

/* Brand Logo */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.brand-logo i {
    font-size: 2.5rem;
    color: var(--accent);
}

.brand-logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
}

.brand-logo span {
    color: var(--accent);
}

/* Hero Content */
.hero-content h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
    color: var(--white);
}

.hero-content p {
    color: #d1d5db;
    margin-bottom: 2rem;
    line-height: 1.6;
    font-size: 1.1rem;
}

/* Feature List */
.feature-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #d1d5db;
    font-size: 0.95rem;
}

.feature-item i {
    color: var(--accent);
    font-size: 1.1rem;
}

/* Service Grid */
.service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--white);
    transition: var(--transition);
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.service-card i {
    font-size: 1.5rem;
}

/* Form Header */
.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.form-header p {
    color: var(--dark-gray);
    font-size: 1rem;
}

/* Role Selector */
.role-selector {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-bottom: 2rem;
    background: #f9fafb;
    padding: 0.5rem;
    border-radius: 12px;
}

.role-btn {
    background: transparent;
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
    color: var(--dark-gray);
}

.role-btn:hover {
    background: var(--white);
    color: var(--primary-light);
}

.role-btn.active {
    background: var(--white);
    border-color: var(--primary-light);
    color: var(--primary-light);
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.1);
}

.role-btn i {
    font-size: 1.25rem;
}

.role-btn span {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Input Groups */
.input-group {
    margin-bottom: 1.5rem;
}

.input-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark);
}

.input-field {
    position: relative;
    display: flex;
    align-items: center;
}

.input-field i {
    position: absolute;
    left: 1rem;
    color: var(--dark-gray);
    pointer-events: none;
}

.input-field input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

.input-field input:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Password Toggle */
.password-toggle {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    color: var(--dark-gray);
    cursor: pointer;
    padding: 0.25rem;
    font-size: 1rem;
}

/* Form Options */
.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;
    color: var(--dark);
    user-select: none;
}

.checkbox-label input {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--gray);
    border-radius: 4px;
    display: inline-block;
    position: relative;
    transition: var(--transition);
}

.checkbox-label input:checked + .checkmark {
    background: var(--primary-light);
    border-color: var(--primary-light);
}

.checkbox-label input:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 12px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.text-link {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
}

.text-link:hover {
    text-decoration: underline;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    margin: 2rem 0;
    color: var(--dark-gray);
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.divider span {
    padding: 0 1rem;
    font-size: 0.875rem;
}

/* Social Login */
.social-login {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn.google {
    background: var(--white);
    border: 2px solid #dc2626;
    color: #dc2626;
}

.btn.google:hover {
    background: #fef2f2;
    border-color: #b91c1c;
}

.btn.facebook {
    background: var(--white);
    border: 2px solid #2563eb;
    color: #2563eb;
}

.btn.facebook:hover {
    background: #eff6ff;
    border-color: #1d4ed8;
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.auth-footer p {
    color: var(--dark-gray);
    margin-bottom: 1rem;
}

.link-primary {
    color: var(--primary-light);
    font-weight: 500;
    text-decoration: none;
}

.link-primary:hover {
    text-decoration: underline;
}

.btn-ghost {
    background: transparent;
    color: var(--primary-light);
    border: 2px solid var(--primary-light);
}

.btn-ghost:hover {
    background: var(--primary-light);
    color: var(--white);
}

/* =========== LOADING OVERLAY (FIXED) =========== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none; /* Default: allow clicks to pass through */
}

.loading-overlay.active {
    display: flex;
    opacity: 1;
    pointer-events: auto; /* When active: block clicks */
}

.loading-content {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    min-width: 300px;
    max-width: 400px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e5e7eb;
    border-top: 4px solid var(--primary-light);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

.loading-text {
    color: var(--dark);
    margin-bottom: 1.5rem;
    font-weight: 500;
    font-size: 1.1rem;
}

.cancel-btn {
    margin-top: 1rem;
    background: var(--white);
    border: 2px solid var(--gray);
    color: var(--dark);
    padding: 8px 20px;
}

.cancel-btn:hover {
    background: #f9fafb;
    border-color: var(--dark-gray);
}

/* Messages Container */
.messages-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 9998;
    max-width: 400px;
    pointer-events: none; /* Allow clicks to pass through */
}

.messages-container .alert {
    pointer-events: auto; /* But allow clicks on alerts themselves */
    animation: slideInRight 0.3s ease;
    margin-bottom: 0.5rem;
}

.alert-error {
    background: #fee2e2;
    border: 2px solid #fecaca;
    color: #991b1b;
}

.alert-success {
    background: #d1fae5;
    border: 2px solid #bbf7d0;
    color: #065f46;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Error states */
.invalid {
    border-color: var(--danger) !important;
}

/* Responsive */
@media (max-width: 1024px) {
    .auth-container {
        grid-template-columns: 1fr;
    }
    
    .auth-left {
        display: none; /* Hide marketing on mobile */
    }
    
    .auth-right {
        padding: 1rem;
        min-height: 100vh;
    }
}

@media (max-width: 640px) {
    .role-selector {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .social-login {
        grid-template-columns: 1fr;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
    }
    
    .loading-content {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .messages-container {
        left: 1rem;
        right: 1rem;
        max-width: none;
    }
}
/* Add to your main.css */
.icon {
    width: 1.5rem;
    height: 1.5rem;
    fill: currentColor;
    stroke: currentColor;
    transition: all 0.2s ease;
}

.icon--small {
    width: 1rem;
    height: 1rem;
}

.icon--large {
    width: 2rem;
    height: 2rem;
}

.icon--xl {
    width: 3rem;
    height: 3rem;
}

.icon--primary {
    color: #2563eb;
}

.icon--success {
    color: #10b981;
}

.icon--warning {
    color: #f59e0b;
}

.icon--error {
    color: #ef4444;
}

/* Spinner animation */
.icon-spin {
    animation: icon-spin 2s linear infinite;
}

@keyframes icon-spin {
    100% {
        transform: rotate(360deg);
    }
}
:root {
    --color-primary: #667eea;
    --color-primary-dark: #5a67d8;
    --color-primary-light: #7f9cf5;
    --color-secondary: #764ba2;
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-error: #ef4444;
    --color-text: #1e293b;
    --color-text-light: #64748b;
    --color-background: #f8fafc;
    --color-surface: #ffffff;
    --color-border: #e2e8f0;
    
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    
    --border-radius-sm: 0.25rem;
    --border-radius-md: 0.5rem;
    --border-radius-lg: 1rem;
    
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    
    --transition-fast: 150ms;
    --transition-normal: 250ms;
    --transition-slow: 350ms;
}

@media (prefers-color-scheme: dark) {
    :root {
        --color-text: #f1f5f9;
        --color-text-light: #94a3b8;
        --color-background: #0f172a;
        --color-surface: #1e293b;
        --color-border: #334155;
    }
}