/* Computer Heaven Main Stylesheet */
/* Brand Colors: Primary Blue #00A8E8 */

:root {
    /* Brand Colors - WCAG AAA Compliant */
    --primary-blue: #0066CC;
    --dark-blue: #004C99;
    --light-blue: #E6F2FF;
    --success-green: #00753A;
    --warning-orange: #C25400;
    --error-red: #C41E3A;
    
    /* Neutral Colors */
    --text-dark: #1A1A1A;
    --text-secondary: #4A4A4A;
    --bg-light: #F8F9FA;
    --bg-white: #FFFFFF;
    --border-color: #D1D5DB;
    
    /* Typography */
    --font-body: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing - Tightened for compact design */
    --spacing-xs: 0.375rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    
    /* Transitions */
    --transition: all 0.2s ease;
    
    /* Focus Ring for Accessibility */
    --focus-ring: 0 0 0 3px rgba(0, 102, 204, 0.25);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.5;
    background-color: var(--bg-white);
    font-size: 15px;
}

/* Accessibility - Skip Link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--primary-blue);
    color: white;
    padding: var(--spacing-sm) var(--spacing-md);
    text-decoration: none;
    z-index: 100;
    font-weight: 600;
    border-radius: 0 0 4px 0;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid var(--warning-orange);
    outline-offset: 2px;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Typography - More compact */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.625rem; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

p {
    margin-bottom: var(--spacing-sm);
    line-height: 1.6;
}

a {
    color: var(--primary-blue);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    transition: var(--transition);
}

a:hover, a:focus {
    color: var(--dark-blue);
    text-decoration-thickness: 2px;
}

a:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Buttons - Accessible & Professional */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    border: 2px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1.4;
}

.btn:focus {
    outline: 3px solid var(--warning-orange);
    outline-offset: 2px;
}

.btn-primary {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

.btn-primary:hover, .btn-primary:focus {
    background: var(--dark-blue);
    border-color: var(--dark-blue);
    color: white;
    text-decoration: none;
}

.btn-secondary {
    background: var(--text-secondary);
    color: white;
    border-color: var(--text-secondary);
}

.btn-secondary:hover, .btn-secondary:focus {
    background: var(--text-dark);
    border-color: var(--text-dark);
    color: white;
    text-decoration: none;
}

.btn-accent {
    background: var(--warning-orange);
    color: white;
    border-color: var(--warning-orange);
}

.btn-accent:hover, .btn-accent:focus {
    background: #9F4300;
    border-color: #9F4300;
    color: white;
    text-decoration: none;
}

.btn-large {
    padding: 0.875rem 1.75rem;
    font-size: 1.0625rem;
}

.btn-block {
    width: 100%;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Special Remote Support Button */
.remote-support-btn {
    background: var(--warning-orange) !important;
    border-color: var(--warning-orange) !important;
    font-size: 1.0625rem;
    padding: 0.875rem 1.75rem;
    box-shadow: 0 2px 8px rgba(194, 84, 0, 0.3);
}

.remote-support-btn:hover, .remote-support-btn:focus {
    background: #9F4300 !important;
    border-color: #9F4300 !important;
    box-shadow: 0 4px 12px rgba(194, 84, 0, 0.4);
    transform: translateY(-1px);
}

/* Header - Compact & Professional */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: white;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.top-bar {
    background: var(--primary-blue);
    color: white;
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.top-bar a {
    color: white;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    text-decoration: none;
    font-weight: 500;
}

.top-bar a:focus {
    outline: 2px solid white;
    outline-offset: 2px;
    border-radius: 2px;
}

.social-links {
    display: flex;
    gap: 0.5rem;
}

.social-links a {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.15);
    border-radius: 4px;
    transition: var(--transition);
}

.social-links a:hover, .social-links a:focus {
    background: rgba(255,255,255,0.25);
}

/* Main Navigation - Streamlined */
.main-nav {
    background: white;
    padding: 0.75rem 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 48px;
    width: auto;
}

.logo:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 4px;
    border-radius: 4px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
    margin: 0;
}

.nav-menu a {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 0.5rem 0;
    position: relative;
    text-decoration: none;
}

.nav-menu a:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 4px;
    border-radius: 2px;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: width 0.2s;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.login-btn {
    background: var(--primary-blue);
    color: white !important;
    padding: 0.5rem 1rem !important;
    border-radius: 6px;
    border: 2px solid var(--primary-blue);
}

.login-btn::after {
    display: none;
}

.login-btn:hover, .login-btn:focus {
    background: var(--dark-blue);
    border-color: var(--dark-blue);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: 2px solid var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    color: var(--text-dark);
}

.mobile-menu-toggle:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Hero Section - More Professional */
.hero {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    background: url('/assets/images/hero-bg.jpg') center/cover;
    color: white;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.88), rgba(0, 76, 153, 0.92));
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    color: white;
}

.hero .subtitle {
    font-size: 1.375rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

/* Services Section - Cleaner Layout */
.services-section {
    padding: 3rem 0;
    background: var(--bg-light);
}

.services-section h2 {
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.0625rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: var(--transition);
    border: 1px solid transparent;
}

.service-card:hover, .service-card:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    border-color: var(--primary-blue);
}

.service-icon {
    width: 56px;
    height: 56px;
    background: var(--primary-blue);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.service-icon .material-icons {
    font-size: 28px;
}

.service-card h3 {
    text-align: center;
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
}

.service-card p {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.card-link {
    display: block;
    text-align: center;
    margin-top: 0.75rem;
    font-weight: 600;
    color: var(--primary-blue);
    font-size: 0.9375rem;
}

.card-link:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
    border-radius: 2px;
}

/* CTA Section - More Professional */
.cta-section {
    padding: 2.5rem 0;
    background: var(--dark-blue);
    color: white;
    text-align: center;
}

.cta-section h2 {
    color: white;
    font-size: 1.75rem;
}

.cta-section .highlight {
    color: var(--light-blue);
}

.cta-phone a {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    text-decoration: none;
}

.cta-phone a:focus {
    outline: 2px solid white;
    outline-offset: 4px;
    border-radius: 4px;
}

/* Footer - Professional & Compact */
.footer {
    background: var(--text-dark);
    color: #E5E5E5;
    padding: 2.5rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-section h3 {
    color: white;
    margin-bottom: 0.875rem;
    font-size: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #D1D5DB;
    font-size: 0.9375rem;
}

.footer-section a:hover, .footer-section a:focus {
    color: white;
}

.footer-section a:focus {
    outline: 2px solid white;
    outline-offset: 2px;
    border-radius: 2px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1rem;
    text-align: center;
    color: #9CA3AF;
    font-size: 0.875rem;
}

/* Page Header - More Compact */
.page-header {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.page-header h1 {
    color: white;
    margin-bottom: 0.5rem;
}

.page-header .subtitle {
    font-size: 1.125rem;
    opacity: 0.95;
}

/* Forms - Accessible & Clean */
.contact-form {
    max-width: 600px;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9375rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    transition: var(--transition);
    background: white;
    color: var(--text-dark);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: var(--focus-ring);
}

.form-group input:disabled,
.form-group select:disabled,
.form-group textarea:disabled {
    background: var(--bg-light);
    cursor: not-allowed;
    opacity: 0.7;
}

.required {
    color: var(--error-red);
    font-weight: 700;
}

.error-message {
    color: var(--error-red);
    font-size: 0.875rem;
    margin-top: 0.375rem;
    display: none;
    font-weight: 500;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: var(--error-red);
}

.form-group.error .error-message {
    display: block;
}

/* Input with Icon */
.input-with-icon {
    position: relative;
}

.input-with-icon .material-icons {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 20px;
}

.input-with-icon input {
    padding-left: 2.75rem;
}

.toggle-password {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text-secondary);
}

.toggle-password:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Checkbox & Radio */
.checkbox-label,
.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 400;
}

.checkbox-label input[type="checkbox"],
.radio-label input[type="radio"] {
    width: auto;
    margin: 0;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"]:focus,
.radio-label input[type="radio"]:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Modal - Accessible Design */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.modal[hidden] {
    display: none;
}

.modal-content {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    max-width: 500px;
    width: 100%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.modal-close {
    position: absolute;
    top: 0.875rem;
    right: 0.875rem;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--error-red);
    color: white;
    border-color: var(--error-red);
}

.modal-close:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Responsive Design - Mobile First */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    .container {
        padding: 0 1rem;
    }
    
    .top-bar {
        font-size: 0.8125rem;
    }
    
    .top-bar-content {
        gap: 0.5rem;
    }
    
    .hours {
        order: -1;
        width: 100%;
    }
    
    .social-links {
        display: none;
    }
    
    .hero {
        min-height: 360px;
    }
    
    .hero h1 { 
        font-size: 2rem; 
    }
    
    .hero .subtitle {
        font-size: 1.125rem;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 0.75rem;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        gap: 0;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu a {
        display: block;
        padding: 0.875rem;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-menu a::after {
        display: none;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-phone a {
        font-size: 1.5rem;
    }
    
    .services-section {
        padding: 2rem 0;
    }
    
    .cta-section {
        padding: 2rem 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
    
    .btn-large {
        padding: 0.875rem 1.25rem;
        font-size: 0.9375rem;
    }
}

/* Meet Our Team Section - More Compact */
.meet-team-section {
    padding: 3rem 0;
    background: var(--bg-light);
}

.meet-team-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 0.75rem;
    color: var(--dark-blue);
}

.section-intro {
    text-align: center;
    font-size: 1.0625rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.5;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.team-member {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

.team-member:hover, .team-member:focus-within {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 102, 204, 0.12);
    border-color: var(--primary-blue);
}

.team-photo {
    position: relative;
    width: 100%;
    height: 260px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--light-blue), var(--primary-blue));
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.team-member:hover .team-photo img {
    transform: scale(1.03);
}

.team-badge {
    position: absolute;
    top: 0.875rem;
    right: 0.875rem;
    background: var(--primary-blue);
    color: white;
    padding: 0.375rem 0.875rem;
    border-radius: 16px;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.team-content {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.team-content h3 {
    font-size: 1.25rem;
    color: var(--dark-blue);
    margin: 0 0 0.25rem 0;
}

.team-role {
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 0.875rem;
    margin: 0 0 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.team-email {
    margin: 0 0 0.875rem 0;
    font-size: 0.875rem;
}

.team-email a {
    color: var(--text-secondary);
}

.team-email a:hover, .team-email a:focus {
    color: var(--primary-blue);
}

.team-bio {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
    font-size: 0.9375rem;
}

.team-bio p {
    margin-bottom: 0.5rem;
}

.team-bio strong {
    color: var(--dark-blue);
    font-weight: 600;
}

.team-interests {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-top: 0.875rem;
    border-top: 1px solid var(--border-color);
}

.interest-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: var(--light-blue);
    color: var(--dark-blue);
    padding: 0.375rem 0.75rem;
    border-radius: 16px;
    font-size: 0.8125rem;
    font-weight: 600;
}

.interest-tag .material-icons {
    font-size: 14px;
}

/* Loading Spinner */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-overlay[hidden] {
    display: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--bg-light);
    border-top-color: var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========================================
   LOGIN PAGE STYLES
   ======================================== */

.login-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.minimal-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.25rem 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.minimal-header .container {
    display: flex;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.minimal-header .logo img {
    height: 48px;
}

.login-main {
    min-height: calc(100vh - 90px);
    display: flex;
    align-items: center;
    padding: 3rem 1.5rem;
}

.login-container {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.login-card {
    background: white;
    border-radius: 12px;
    padding: 2.5rem 2rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border: none;
}

.signup-card {
    max-width: 500px;
    margin: 0 auto;
}

.login-card h1 {
    font-size: 1.75rem;
    margin-bottom: 0.375rem;
    text-align: center;
    color: var(--text-dark);
    font-weight: 700;
}

.login-subtitle {
    text-align: center;
    color: #6B7280;
    margin-bottom: 2rem;
    font-size: 0.9375rem;
    line-height: 1.4;
}

.auth-form {
    margin: 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-dark);
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon .material-icons {
    position: absolute;
    left: 0.875rem;
    color: #9CA3AF;
    font-size: 20px;
    pointer-events: none;
}

.input-with-icon input {
    padding-left: 2.75rem !important;
}

.input-with-icon .toggle-password {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    color: #9CA3AF;
    transition: color 0.2s;
}

.input-with-icon .toggle-password:hover {
    color: var(--primary-blue);
}

.input-with-icon .toggle-password .material-icons {
    position: static;
    font-size: 20px;
}

.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="text"] {
    width: 100%;
    padding: 0.75rem 0.875rem;
    border: 1.5px solid #E5E7EB;
    border-radius: 8px;
    font-size: 0.9375rem;
    transition: all 0.2s;
    background: #F9FAFB;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--text-secondary);
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.text-link {
    color: var(--primary-blue);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.text-link:hover {
    color: var(--dark-blue);
    text-decoration: underline;
}

.text-link:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
    border-radius: 2px;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-large {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.btn-primary {
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    background: var(--dark-blue);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.25);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: white;
    color: var(--text-dark);
    border: 1.5px solid #E5E7EB;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.btn-secondary:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    background: #F9FAFB;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.auth-divider {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #E5E7EB;
}

.auth-divider span {
    position: relative;
    background: white;
    padding: 0 1rem;
    color: #9CA3AF;
    font-size: 0.875rem;
    font-weight: 500;
}

.auth-footer {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #E5E7EB;
    text-align: center;
}

.auth-footer p {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--primary-blue);
    font-weight: 500;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.error-message {
    display: none;
    font-size: 0.8125rem;
    color: var(--error-red);
    margin-top: 0.375rem;
}

.password-hint {
    display: block;
    font-size: 0.8125rem;
    color: #6B7280;
    margin-top: 0.375rem;
}

/* Login Sidebar */
.login-sidebar {
    display: none; /* Hidden on compact login */
}

.info-box {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 1.5rem;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    backdrop-filter: blur(10px);
}

.info-box .material-icons {
    font-size: 32px;
    color: var(--primary-blue);
    margin-bottom: 0.75rem;
}

.info-box h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.info-box p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.info-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-box li {
    font-size: 0.875rem;
    color: var(--text-secondary);
    padding: 0.375rem 0;
}

.guardianx-promo {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.guardianx-promo .material-icons {
    color: white;
}

.guardianx-promo h3,
.guardianx-promo p {
    color: white;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
}

.loading-overlay .spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-overlay p {
    color: white;
    margin-top: 1.5rem;
    font-size: 1rem;
    font-weight: 500;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .login-container {
        padding: 0 1rem;
    }
    
    .login-card {
        padding: 2rem 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .minimal-header .logo img {
        height: 40px;
    }
}

.info-box .material-icons {
    font-size: 32px;
    color: var(--primary-blue);
    margin-bottom: 0.75rem;
}

.info-box h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.info-box p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.info-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-box li {
    font-size: 0.875rem;
    color: var(--text-secondary);
    padding: 0.375rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.info-box li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-green);
    font-weight: 700;
}

.info-box a {
    color: var(--primary-blue);
    font-weight: 500;
}

.guardianx-promo {
    background: linear-gradient(135deg, var(--light-blue), #f0f9ff);
    border-color: var(--primary-blue);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Responsive Login Page */
@media (max-width: 900px) {
    .login-container {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
    
    .login-sidebar {
        order: -1;
    }
    
    .info-box {
        padding: 1rem;
    }
}

@media (max-width: 500px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .login-card {
        padding: 1.5rem;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

