/**
 * Afri Origin - Main CSS Stylesheet
 * Following GS1 Style Guidelines and Modern Design Principles
 * 
 * Colors based on GS1 Brand Guidelines:
 * - Primary Blue: #008DBD (GS1 Blue)
 * - Secondary Blue: #005C7A
 * - Accent Orange: #FF6B35
 * - Dark Grey: #2C3E50
 * - Light Grey: #F8F9FA
 * - Success Green: #28A745
 * - Warning Orange: #FFC107
 * - Error Red: #DC3545
 */

/* ===== CSS RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #2C3E50;
    background-color: #FFFFFF;
    overflow-x: hidden;
}

/* ===== CSS VARIABLES ===== */
:root {
    /* GS1 Brand Colors */
    --primary-color: #008DBD;
    --primary-dark: #005C7A;
    --secondary-color: #FF6B35;
    --accent-color: #FFC107;
    
    /* Neutral Colors */
    --dark-color: #2C3E50;
    --grey-color: #6C757D;
    --light-grey: #F8F9FA;
    --border-color: #E9ECEF;
    --white: #FFFFFF;
    
    /* Status Colors */
    --success-color: #28A745;
    --warning-color: #FFC107;
    --error-color: #DC3545;
    --info-color: #17A2B8;
    
    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.15);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ===== UTILITY CLASSES ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-semibold);
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: var(--dark-color);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--spacing-md);
    color: var(--grey-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1rem;
    font-weight: var(--font-weight-medium);
    text-decoration: none;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-medium);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-large {
    padding: var(--spacing-lg) var(--spacing-xxl);
    font-size: 1.125rem;
}

.btn-full {
    width: 100%;
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all var(--transition-medium);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md) var(--spacing-lg);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.logo {
    height: 40px;
    width: auto;
}

.brand-text {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
}

.brand-tagline {
    font-size: 0.875rem;
    color: var(--grey-color);
    font-weight: var(--font-weight-medium);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--spacing-xxl);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: var(--spacing-xl);
    margin: 0;
}

.nav-link {
    font-weight: var(--font-weight-medium);
    color: var(--dark-color);
    padding: var(--spacing-sm) 0;
    position: relative;
    transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
    border-radius: var(--radius-sm);
}

.nav-actions {
    display: flex;
    gap: var(--spacing-md);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: var(--spacing-sm);
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--dark-color);
    border-radius: var(--radius-sm);
    transition: all var(--transition-medium);
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/backgrounds/hero-bg.jpg') center/cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 141, 189, 0.1), rgba(0, 92, 122, 0.1));
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xxl);
    align-items: center;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    line-height: 1.1;
    margin-bottom: var(--spacing-lg);
    padding-top: var(--spacing-xxl);
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--grey-color);
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xxl);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-weight: var(--font-weight-medium);
    color: var(--dark-color);
}

.feature-item i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.hero-actions {
    display: flex;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xxl);
}

.trust-indicators {
    border-top: 1px solid var(--border-color);
    padding-top: var(--spacing-lg);
}

.trust-text {
    font-size: 0.875rem;
    color: var(--grey-color);
    margin-bottom: var(--spacing-md);
}

.trust-logos {
    display: flex;
    gap: var(--spacing-lg);
}

.trust-logo {
    font-size: 0.75rem;
    font-weight: var(--font-weight-medium);
    color: var(--grey-color);
    padding: var(--spacing-xs) var(--spacing-sm);
    background: var(--light-grey);
    border-radius: var(--radius-sm);
}

/* ===== DASHBOARD PREVIEW ===== */
.dashboard-preview {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transform: perspective(1000px) rotateY(-15deg) rotateX(10deg);
    transition: transform var(--transition-slow);
}

.dashboard-preview:hover {
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
}

.preview-header {
    background: var(--light-grey);
    padding: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
}

.preview-dots {
    display: flex;
    gap: var(--spacing-xs);
}

.preview-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--grey-color);
    opacity: 0.5;
}

.preview-dots span:nth-child(1) { background: #FF5F56; }
.preview-dots span:nth-child(2) { background: #FFBD2E; }
.preview-dots span:nth-child(3) { background: #27CA3F; }

.preview-title {
    font-size: 0.875rem;
    font-weight: var(--font-weight-medium);
    color: var(--dark-color);
}

.preview-content {
    padding: var(--spacing-xl);
}

.preview-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.stat-card {
    text-align: center;
    padding: var(--spacing-lg);
    background: var(--light-grey);
    border-radius: var(--radius-md);
}

.stat-value {
    font-size: 2rem;
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--grey-color);
    font-weight: var(--font-weight-medium);
}

.preview-chart {
    height: 120px;
    background: var(--light-grey);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: var(--spacing-md);
    height: 100%;
}

.bar {
    width: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    transition: all var(--transition-medium);
}

.bar:hover {
    transform: scaleY(1.1);
}

/* ===== SCROLL INDICATOR ===== */
.scroll-indicator {
    position: absolute;
    bottom: var(--spacing-xl);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border: 2px solid var(--primary-color);
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) rotate(45deg); }
    40% { transform: translateY(-10px) rotate(45deg); }
    60% { transform: translateY(-5px) rotate(45deg); }
}

/* ===== SECTIONS ===== */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xxl);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-lg);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--grey-color);
    line-height: 1.6;
}

/* ===== FEATURES SECTION ===== */
.features-section {
    padding: var(--spacing-xxl) 0;
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-xl);
}

.feature-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xxl);
    text-align: center;
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-medium);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-lg);
}

.feature-icon i {
    font-size: 2rem;
    color: var(--white);
}

.feature-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--dark-color);
}

.feature-description {
    color: var(--grey-color);
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
}

.feature-list {
    list-style: none;
    text-align: left;
}

.feature-list li {
    position: relative;
    padding-left: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
    color: var(--grey-color);
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: var(--font-weight-bold);
}

/* ===== SOLUTIONS SECTION ===== */
.solutions-section {
    padding: var(--spacing-xxl) 0;
    background: var(--light-grey);
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
}

.solution-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xxl);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-medium);
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.solution-icon {
    width: 60px;
    height: 60px;
    background: var(--secondary-color);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-lg);
}

.solution-icon i {
    font-size: 1.5rem;
    color: var(--white);
}

.solution-title {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
    color: var(--dark-color);
}

.solution-description {
    color: var(--grey-color);
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
}

.solution-link {
    color: var(--primary-color);
    font-weight: var(--font-weight-medium);
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    transition: gap var(--transition-fast);
}

.solution-link:hover {
    gap: var(--spacing-md);
}

/* ===== ABOUT SECTION ===== */
.about-section {
    padding: var(--spacing-xxl) 0;
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xxl);
    align-items: center;
}

.about-description {
    font-size: 1.125rem;
    color: var(--grey-color);
    line-height: 1.6;
    margin-bottom: var(--spacing-xl);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--grey-color);
    font-weight: var(--font-weight-medium);
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.about-feature {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    font-weight: var(--font-weight-medium);
    color: var(--dark-color);
}

.about-feature i {
    color: var(--success-color);
    font-size: 1.25rem;
}

.visual-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
}

.card-header h4 {
    font-size: 1.25rem;
    color: var(--dark-color);
    margin-bottom: var(--spacing-lg);
}

.progress-items {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.progress-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.progress-label {
    font-size: 0.875rem;
    font-weight: var(--font-weight-medium);
    color: var(--dark-color);
    min-width: 120px;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-sm);
    transition: width var(--transition-slow);
}

.progress-value {
    font-size: 0.875rem;
    font-weight: var(--font-weight-medium);
    color: var(--dark-color);
    min-width: 40px;
    text-align: right;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    padding: var(--spacing-xxl) 0;
    background: var(--light-grey);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xxl);
    margin-top: var(--spacing-xxl);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.contact-item {
    display: flex;
    gap: var(--spacing-lg);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    color: var(--white);
    font-size: 1.25rem;
}

.contact-details h4 {
    font-size: 1.125rem;
    color: var(--dark-color);
    margin-bottom: var(--spacing-sm);
}

.contact-details p {
    color: var(--grey-color);
    line-height: 1.6;
    margin: 0;
}

/* ===== FORMS ===== */
.form {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xxl);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--spacing-md);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color var(--transition-fast);
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--dark-color);
    color: var(--white);
    padding: var(--spacing-xxl) 0 var(--spacing-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--spacing-xxl);
    margin-bottom: var(--spacing-xxl);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.footer-logo {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-brand-text {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--white);
}

.footer-description {
    color: #B0BEC5;
    line-height: 1.6;
    margin-bottom: var(--spacing-lg);
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all var(--transition-fast);
}

.social-link:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    color: var(--white);
}

.footer-title {
    font-size: 1.125rem;
    color: var(--white);
    margin-bottom: var(--spacing-lg);
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: var(--spacing-sm);
}

.footer-links a {
    color: #B0BEC5;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid #37474F;
    padding-top: var(--spacing-lg);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    color: #B0BEC5;
    font-size: 0.875rem;
    margin: 0;
}

.footer-badges {
    display: flex;
    gap: var(--spacing-md);
}

.badge {
    background: var(--primary-color);
    color: var(--white);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: var(--font-weight-medium);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
        text-align: center;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-xl);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-features {
        justify-content: center;
    }
    
    .features-grid,
    .solutions-grid {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }
    
    .preview-stats {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .progress-item {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }
    
    .progress-label {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-md);
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .trust-logos {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
}


/* ===== ADDITIONAL COMPONENTS CSS ===== */
/* Add this to the end of assets/css/style.css */

/* ===== NOTIFICATIONS ===== */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 10000;
    transform: translateX(400px);
    opacity: 0;
    transition: all var(--transition-medium);
    min-width: 300px;
    max-width: 400px;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    border-left: 4px solid var(--info-color);
}

.notification-success .notification-content {
    border-left-color: var(--success-color);
}

.notification-error .notification-content {
    border-left-color: var(--error-color);
}

.notification-warning .notification-content {
    border-left-color: var(--warning-color);
}

.notification-content i {
    font-size: 1.25rem;
    color: var(--info-color);
}

.notification-success .notification-content i {
    color: var(--success-color);
}

.notification-error .notification-content i {
    color: var(--error-color);
}

.notification-warning .notification-content i {
    color: var(--warning-color);
}

.notification-content span {
    flex: 1;
    font-size: 0.875rem;
    line-height: 1.4;
    color: var(--dark-color);
}

.notification-close {
    background: none;
    border: none;
    color: var(--grey-color);
    cursor: pointer;
    padding: var(--spacing-xs);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.notification-close:hover {
    background: var(--light-grey);
    color: var(--dark-color);
}

/* ===== SCROLL TO TOP BUTTON ===== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    transform: translateY(100px);
    opacity: 0;
    transition: all var(--transition-medium);
}

.scroll-to-top.show {
    transform: translateY(0);
    opacity: 1;
}

.scroll-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.scroll-to-top i {
    font-size: 1.125rem;
}

/* ===== COOKIE CONSENT ===== */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark-color);
    color: var(--white);
    z-index: 10000;
    padding: var(--spacing-lg);
    transform: translateY(100%);
    transition: transform var(--transition-medium);
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-lg);
}

.cookie-content p {
    flex: 1;
    margin: 0;
    font-size: 0.875rem;
    color: #B0BEC5;
}

.cookie-actions {
    display: flex;
    gap: var(--spacing-md);
}

.btn-sm {
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: 0.875rem;
}

/* ===== LOADING SCREEN ===== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    font-size: 1.125rem;
    color: var(--grey-color);
    font-weight: var(--font-weight-medium);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== ANIMATION CLASSES ===== */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.typing-text::after {
    content: '|';
    animation: blink 1s infinite;
}

.typing-complete::after {
    display: none;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.bar.animated {
    animation: barGrow 0.8s ease-out;
}

@keyframes barGrow {
    0% { transform: scaleY(0); }
    100% { transform: scaleY(1); }
}

/* ===== MOBILE MENU STYLES ===== */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: var(--shadow-lg);
        padding: var(--spacing-lg);
        transition: top var(--transition-medium);
        z-index: 999;
    }
    
    .nav-menu.active {
        top: 72px; /* Height of navbar */
    }
    
    .nav-links {
        flex-direction: column;
        gap: var(--spacing-lg);
        margin-bottom: var(--spacing-lg);
    }
    
    .nav-actions {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    body.menu-open {
        overflow: hidden;
    }
}

/* ===== NAVBAR SCROLL EFFECT ===== */
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

.navbar.scrolled .nav-brand .logo {
    height: 35px;
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles */
.btn:focus,
.nav-link:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000080;
        --secondary-color: #FF4500;
        --dark-color: #000000;
        --grey-color: #333333;
        --border-color: #000000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .scroll-arrow {
        animation: none;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .navbar,
    .scroll-to-top,
    .notification,
    .cookie-consent,
    .social-links,
    .hero-actions,
    .nav-actions {
        display: none !important;
    }
    
    .hero {
        min-height: auto;
        padding: var(--spacing-lg) 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000000;
        background: #ffffff;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
}

/* ===== TOUCH DEVICE OPTIMIZATIONS ===== */
.touch-device .feature-card:hover,
.touch-device .solution-card:hover,
.touch-device .dashboard-preview:hover {
    transform: none;
}

.touch-device .btn {
    min-height: 44px; /* Apple's recommended touch target size */
}

/* ===== DARK MODE SUPPORT (Future Enhancement) ===== */
@media (prefers-color-scheme: dark) {
    /* Dark mode styles can be added here for future enhancement */
    /* Currently maintaining light theme as per GS1 guidelines */
}

/* ===== UTILITY CLASSES ===== */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-up {
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(30px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.zoom-in {
    animation: zoomIn 0.6s ease-out;
}

@keyframes zoomIn {
    from { 
        opacity: 0;
        transform: scale(0.9);
    }
    to { 
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive text sizes */
.text-responsive {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
}

.title-responsive {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

/* Responsive spacing */
.spacing-responsive {
    padding: clamp(1rem, 4vw, 3rem) 0;
}

/* ===== COMPONENT STATES ===== */
.is-loading {
    pointer-events: none;
    opacity: 0.6;
}

.is-disabled {
    pointer-events: none;
    opacity: 0.5;
    cursor: not-allowed;
}

.is-hidden {
    display: none !important;
}

.is-visible {
    display: block !important;
}

/* ===== GRID HELPERS ===== */
.grid-auto-fit {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.grid-auto-fill {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

/* ===== FLEX HELPERS ===== */
.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flex-start {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.flex-end {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.flex-column {
    display: flex;
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

/* ===== SPACING HELPERS ===== */
.m-0 { margin: 0 !important; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.ml-0 { margin-left: 0 !important; }
.mr-0 { margin-right: 0 !important; }

.p-0 { padding: 0 !important; }
.pt-0 { padding-top: 0 !important; }
.pb-0 { padding-bottom: 0 !important; }
.pl-0 { padding-left: 0 !important; }
.pr-0 { padding-right: 0 !important; }

.gap-sm { gap: var(--spacing-sm) !important; }
.gap-md { gap: var(--spacing-md) !important; }
.gap-lg { gap: var(--spacing-lg) !important; }
.gap-xl { gap: var(--spacing-xl) !important; }


/**
 * Forms CSS - Afri Origin
 * Comprehensive form styling for authentication and application forms
 */

/* ===== AUTHENTICATION PAGE LAYOUT ===== */
.auth-page {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.auth-header {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: var(--spacing-lg) 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.auth-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.auth-links {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.auth-text {
    color: var(--grey-color);
    font-size: 0.875rem;
    font-weight: var(--font-weight-medium);
}

.auth-main {
    padding: var(--spacing-xxl) 0;
    flex: 1;
    display: flex;
    align-items: center;
}

.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xxl);
    max-width: 1400px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    min-height: 700px;
}

/* ===== FORM SECTION ===== */
.auth-form-section {
    padding: var(--spacing-xxl);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-form-header {
    text-align: center;
    margin-bottom: var(--spacing-xxl);
}

.auth-title {
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--dark-color);
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.auth-subtitle {
    font-size: 1.125rem;
    color: var(--grey-color);
    line-height: 1.6;
    margin-bottom: 0;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

/* ===== FORM SECTIONS ===== */
.form-section {
    margin-bottom: var(--spacing-xxl);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: var(--spacing-xl);
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: var(--spacing-lg);
    padding-bottom: 0;
}

.section-title {
    font-size: 1.25rem;
    font-weight: var(--font-weight-semibold);
    color: var(--dark-color);
    margin-bottom: var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.section-title i {
    color: var(--primary-color);
    font-size: 1.125rem;
}

/* ===== FORM CONTROLS ===== */
.auth-form {
    width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

.form-group {
    margin-bottom: var(--spacing-lg);
    position: relative;
}

.form-label {
    display: block;
    font-weight: var(--font-weight-medium);
    color: var(--dark-color);
    margin-bottom: var(--spacing-sm);
    font-size: 0.875rem;
}

.required {
    color: var(--error-color);
    font-weight: var(--font-weight-bold);
}

.form-control {
    width: 100%;
    padding: var(--spacing-md);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    transition: all var(--transition-fast);
    background: var(--white);
    color: var(--dark-color);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 141, 189, 0.1);
}

.form-control:hover {
    border-color: var(--primary-color);
}

.form-control::placeholder {
    color: var(--grey-color);
    opacity: 0.8;
}

.form-control.is-valid {
    border-color: var(--success-color);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='m2.3 6.73.9.61 3.6-4.34'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}

.form-control.is-invalid {
    border-color: var(--error-color);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 5.8 1.4 1.4'/%3e%3cpath d='m5.8 7.2 1.4-1.4'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}

.form-text {
    font-size: 0.75rem;
    color: var(--grey-color);
    margin-top: var(--spacing-xs);
    line-height: 1.4;
    display: block;
}

.invalid-feedback {
    display: block;
    font-size: 0.75rem;
    color: var(--error-color);
    margin-top: var(--spacing-xs);
    line-height: 1.4;
}

.valid-feedback {
    display: block;
    font-size: 0.75rem;
    color: var(--success-color);
    margin-top: var(--spacing-xs);
    line-height: 1.4;
}

/* ===== PASSWORD FIELD ===== */
.password-field {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: var(--spacing-md);
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--grey-color);
    cursor: pointer;
    padding: var(--spacing-xs);
    border-radius: var(--radius-sm);
    transition: color var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover {
    color: var(--primary-color);
    background: rgba(0, 141, 189, 0.1);
}

.password-toggle:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ===== PASSWORD STRENGTH INDICATOR ===== */
.password-strength {
    margin-top: var(--spacing-sm);
}

.strength-bar {
    width: 100%;
    height: 4px;
    background: var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: var(--spacing-xs);
}

.strength-fill {
    height: 100%;
    transition: width var(--transition-medium);
    border-radius: var(--radius-sm);
}

.strength-bar.weak .strength-fill {
    background: var(--error-color);
    width: 25%;
}

.strength-bar.medium .strength-fill {
    background: var(--warning-color);
    width: 50%;
}

.strength-bar.strong .strength-fill {
    background: var(--success-color);
    width: 100%;
}

.strength-text {
    font-size: 0.75rem;
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--spacing-xs);
    display: block;
}

.strength-text.weak {
    color: var(--error-color);
}

.strength-text.medium {
    color: var(--warning-color);
}

.strength-text.strong {
    color: var(--success-color);
}

.strength-feedback {
    font-size: 0.75rem;
    color: var(--grey-color);
    display: block;
}

/* ===== CHECKBOXES ===== */
.form-check {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    position: relative;
}

.form-check-input {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--white);
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
    margin-top: 2px;
    appearance: none;
    -webkit-appearance: none;
    position: relative;
}

.form-check-input:checked {
    background: var(--primary-color);
    border-color: var(--primary-color);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
}

.form-check-input:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.form-check-input.is-invalid {
    border-color: var(--error-color);
}

.form-check-label {
    font-size: 0.875rem;
    color: var(--dark-color);
    line-height: 1.5;
    cursor: pointer;
    flex: 1;
}

.form-check-label a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: var(--font-weight-medium);
}

.form-check-label a:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

/* ===== FORM ACTIONS ===== */
.form-actions {
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

/* ===== AUTH FOOTER ===== */
.auth-footer {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
}

.auth-footer-text {
    margin-bottom: var(--spacing-md);
    color: var(--grey-color);
    font-size: 0.875rem;
}

.auth-link {
    color: var(--primary-color);
    font-weight: var(--font-weight-medium);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.auth-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ===== INFO SECTION ===== */
.auth-info-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: var(--spacing-xxl);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.auth-info-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
}

.auth-info-content {
    width: 100%;
    position: relative;
    z-index: 1;
}

.info-title {
    font-size: 2rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-lg);
    color: var(--white);
    line-height: 1.2;
}

.info-description {
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-xxl);
    color: rgba(255, 255, 255, 0.9);
}

.info-features {
    margin-bottom: var(--spacing-xxl);
}

.info-feature {
    display: flex;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    align-items: flex-start;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

.info-feature:hover .feature-icon {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.feature-icon i {
    font-size: 1.25rem;
    color: var(--white);
}

.feature-content h4 {
    font-size: 1.125rem;
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-sm);
    color: var(--white);
}

.feature-content p {
    font-size: 0.875rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.info-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.stat-item {
    text-align: center;
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.stat-number {
    font-size: 2rem;
    font-weight: var(--font-weight-bold);
    color: var(--white);
    margin-bottom: var(--spacing-sm);
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

/* ===== ALERTS ===== */
.alert {
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    border: 1px solid transparent;
}

.alert-success {
    background: rgba(40, 167, 69, 0.1);
    border-color: rgba(40, 167, 69, 0.2);
    color: var(--success-color);
}

.alert-error {
    background: rgba(220, 53, 69, 0.1);
    border-color: rgba(220, 53, 69, 0.2);
    color: var(--error-color);
}

.alert-warning {
    background: rgba(255, 193, 7, 0.1);
    border-color: rgba(255, 193, 7, 0.2);
    color: var(--warning-color);
}

.alert-info {
    background: rgba(23, 162, 184, 0.1);
    border-color: rgba(23, 162, 184, 0.2);
    color: var(--info-color);
}

.alert i {
    font-size: 1.25rem;
}

.alert span {
    flex: 1;
    font-weight: var(--font-weight-medium);
}

.redirect-message {
    text-align: center;
    padding: var(--spacing-lg);
    background: var(--light-grey);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-lg);
}

.redirect-message p {
    margin: 0;
    color: var(--grey-color);
    font-weight: var(--font-weight-medium);
}

#countdown {
    color: var(--primary-color);
    font-weight: var(--font-weight-bold);
}

/* ===== MODALS ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    transform: translateY(20px);
    opacity: 0;
    transition: all var(--transition-medium);
}

.modal.show .modal-content {
    transform: translateY(0);
    opacity: 1;
}

.modal-header {
    padding: var(--spacing-xl);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    background: var(--white);
    z-index: 1;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: var(--font-weight-semibold);
    color: var(--dark-color);
}

.modal-close {
    background: none;
    border: none;
    color: var(--grey-color);
    cursor: pointer;
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--light-grey);
    color: var(--dark-color);
}

.modal-body {
    padding: var(--spacing-xl);
}

.modal-body h4 {
    font-size: 1.125rem;
    font-weight: var(--font-weight-semibold);
    color: var(--dark-color);
    margin-bottom: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.modal-body h4:first-child {
    margin-top: 0;
}

.modal-body p {
    color: var(--grey-color);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

.modal-footer {
    padding: var(--spacing-xl);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    position: sticky;
    bottom: 0;
    background: var(--white);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .auth-container {
        grid-template-columns: 1fr;
        max-width: 600px;
    }
    
    .auth-info-section {
        order: -1;
        padding: var(--spacing-xl);
    }
    
    .info-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-md);
    }
}

@media (max-width: 768px) {
    .auth-main {
        padding: var(--spacing-lg) 0;
    }
    
    .auth-form-section {
        padding: var(--spacing-lg);
    }
    
    .auth-info-section {
        padding: var(--spacing-lg);
    }
    
    .auth-title {
        font-size: 2rem;
    }
    
    .info-title {
        font-size: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .info-stats {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .auth-nav {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }
    
    .auth-links {
        flex-direction: column;
        gap: var(--spacing-sm);
        width: 100%;
    }
    
    .modal-content {
        margin: var(--spacing-md);
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: var(--spacing-lg);
    }
}

@media (max-width: 480px) {
    .auth-container {
        margin: var(--spacing-md);
        border-radius: var(--radius-lg);
    }
    
    .auth-form-section,
    .auth-info-section {
        padding: var(--spacing-md);
    }
    
    .auth-title {
        font-size: 1.75rem;
    }
    
    .info-title {
        font-size: 1.25rem;
    }
    
    .form-section {
        margin-bottom: var(--spacing-xl);
    }
    
    .modal-content {
        margin: var(--spacing-sm);
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: var(--spacing-md);
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== FORM VALIDATION STATES ===== */
.was-validated .form-control:valid {
    border-color: var(--success-color);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='m2.3 6.73.9.61 3.6-4.34'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}

.was-validated .form-control:invalid {
    border-color: var(--error-color);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 5.8 1.4 1.4'/%3e%3cpath d='m5.8 7.2 1.4-1.4'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}

/* ===== LOADING STATE ===== */
.is-loading {
    position: relative;
    pointer-events: none;
}

.is-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
.form-control:focus-visible,
.form-check-input:focus-visible,
.password-toggle:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .form-control {
        border-width: 3px;
    }
    
    .form-check-input {
        border-width: 3px;
    }
    
    .password-toggle {
        border: 2px solid currentColor;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .modal-content,
    .strength-fill,
    .feature-icon,
    .stat-item {
        transition: none !important;
    }
    
    .is-loading::after {
        animation: none;
        content: 'Loading...';
        width: auto;
        height: auto;
        background: none;
        border: none;
        color: var(--primary-color);
        font-size: 0.875rem;
        transform: none;
        margin: 0;
        position: static;
    }
}


/* Multi-step form styles */
.form-step {
    display: none;
    animation: fadeIn 0.5s ease;
}

.form-step.active {
    display: block;
}

.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: var(--spacing-xl);
}

.step-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: var(--spacing-xl);
    gap: var(--spacing-md);
}

.step-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
    transition: all var(--transition-fast);
}

.step-dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

.step-dot.completed {
    background: var(--success-color);
}

/* Hide the submit button until the last step */
#submitBtn {
    display: none;
}

/* Show submit button on last step */
.form-step:last-child.active #submitBtn {
    display: inline-flex;
}

/* Hide next button on last step */
.form-step:last-child.active .btn-next {
    display: none;
}