/* === 1. TYPOGRAPHY IDENTITY === */
/*
 * All text on every public page uses the Poppins typeface.
 * Without this, text falls back to browser defaults (Times New Roman / Arial).
 */

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins-300.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}


/* === COLOUR VARIABLES === */
/*
 * All colours used across public pages in one place.
 * Change a value here to update it everywhere.
 */

:root {
    /* Primary blue — links, buttons, focus highlights */
    --color-blue:          #3498db;
    --color-blue-dark:     #2980b9;
    --color-blue-deeper:   #1f5f8b;

    /* Purple — passkey / biometric button */
    --color-purple:        #9b59b6;
    --color-purple-dark:   #8e44ad;
    --color-purple-deeper: #7d3c98;

    /* Text */
    --color-text:          #2c3e50;  /* headings, body text, footer background */
    --color-text-sub:      #34495e;  /* secondary text, labels, nav links */
    --color-text-muted:    #7f8c8d;  /* placeholder, captions, helper text */

    /* Backgrounds */
    --color-bg:            #f8f9fa;  /* page background */
    --color-bg-alt:        #ecf0f1;  /* alternate sections, input borders, dividers */

    /* Disabled state */
    --color-disabled:      #bdc3c7;
    --color-disabled-dark: #95a5a6;

    /* Feedback: success */
    --color-success-bg:     #d4edda;
    --color-success-text:   #155724;
    --color-success-border: #c3e6cb;

    /* Feedback: error */
    --color-error-bg:     #f8d7da;
    --color-error-text:   #721c24;
    --color-error-border: #f5c6cb;
}


/* === 2. PAGE FOUNDATION === */
/*
 * Removes browser default margin/spacing so elements sit where we put them.
 * Sets the body font and background.
 * Prevents content from stretching too wide on large monitors (capped at 1200px, centred).
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


/* === 3. PERSISTENT NAVIGATION BAR === */
/*
 * The site header stays fixed at the top while scrolling.
 * Shows the logo, page links with an animated underline on hover, and the NL/EN language toggle.
 * A translucent blur behind it keeps it legible over any page content below.
 */

.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.logo h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-text-sub);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.nav-link {
    text-decoration: none;
    color: var(--color-text-sub);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--color-blue);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--color-blue);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.language-toggle {
    background: none;
    border: 2px solid var(--color-blue);
    color: var(--color-blue);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.language-toggle:hover {
    background-color: var(--color-blue);
    color: white;
    text-decoration: none;
}


/* === 4. LANDING HERO IMAGE === */
/*
 * The large full-width image at the top of the home page.
 * a) A gradient overlay keeps the white headline readable over any photo.
 * b) Progressive loading: a blurry placeholder appears immediately, then sharpens.
 * c) GPU hints so the image loads and scrolls without frame drops.
 */

.hero {
    height: 50vh;
    position: relative;
    overflow: hidden;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.hero-image {
    position: relative;
    height: 100%;
    width: 100%;
}

.hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
    will-change: opacity, filter;
    transform: translateZ(0);
    backface-visibility: hidden;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Low-resolution placeholder: visible immediately, blurred until high-res loads */
.hero-img-low {
    opacity: 1;
    filter: brightness(0.7) blur(2px);
    transition: filter 0.3s ease-out;
}

.hero-img-low.loaded {
    filter: brightness(0.7) blur(0px);
}

/* High-resolution image: fades in once loaded */
.hero-img-high {
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.hero-img-high.loaded {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(52, 73, 94, 0.3), rgba(52, 152, 219, 0.3));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content {
    color: white;
    max-width: 800px;
    padding: 2rem;
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: 4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 300;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}


/* === 5. MARKETING CONTENT SECTIONS === */
/*
 * The alternating white/grey content bands that explain Alvans's value proposition.
 * Alternating backgrounds visually separate topics without hard borders.
 * Feature cards lift on hover to signal they contain information worth reading.
 */

.section {
    padding: 5rem 0;
}

.section-alt {
    background-color: var(--color-bg-alt);
}

.section-title {
    font-family: 'Poppins', sans-serif;
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 3rem;
    color: var(--color-text);
    letter-spacing: 1px;
}

.content-grid {
    display: grid;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.content-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--color-text-sub);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.benefit-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.benefit-icon {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.benefit-svg {
    width: 64px;
    height: 64px;
    transition: transform 0.3s ease;
}

.benefit-card:hover .benefit-svg {
    transform: scale(1.1);
}

.benefit-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.benefit-card p {
    color: var(--color-text-muted);
    line-height: 1.6;
}


/* === 6. FOOTER === */
/*
 * Dark closing bar at the bottom of every public page.
 * Copyright/contact info in muted text visually closes the page.
 */

.footer {
    background-color: var(--color-text);
    color: white;
    padding: 1rem 0;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-content p {
    margin: 0;
    opacity: 0.8;
    font-size: 0.9rem;
    text-align: center;
}


/* === 7. FORM FIELD EXPERIENCE === */
/*
 * When a user clicks into any text field, it gets a blue highlight border confirming it is active.
 * Labels sit cleanly above inputs.
 * The custom checkbox replaces the inconsistent browser default with a branded, accessible version.
 * Used on both the login and contact pages — defined once here.
 */

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    color: var(--color-text-sub);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem 1rem;
    border: 2px solid var(--color-bg-alt);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: white;
    box-sizing: border-box;
    width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-blue);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group select {
    cursor: pointer;
}

/* Custom checkbox: replaces browser default with a branded styled version */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--color-disabled);
    border-radius: 4px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 0.5rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked {
    background-color: var(--color-blue);
    border-color: var(--color-blue);
}

.checkbox-label input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.checkbox-label input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}


/* === 8. ACTION BUTTONS === */
/*
 * The main call-to-action buttons across public pages.
 * Blue button (login / submit): darkens and lifts on hover; greys out when disabled.
 * Purple button (passkey): distinct colour signals a different authentication method.
 * Both share one disabled state (grey, forbidden cursor).
 * Previously duplicated in login.css and contact.css — defined once here.
 */

/* Shared blue gradient base for login-button and submit-button */
.login-button,
.submit-button {
    background: linear-gradient(135deg, var(--color-blue), var(--color-blue-dark));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.login-button:hover,
.submit-button:hover {
    background: linear-gradient(135deg, var(--color-blue-dark), var(--color-blue-deeper));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.login-button:active,
.submit-button:active {
    transform: translateY(0);
}

/* Login button: full-width, equal padding on all sides */
.login-button {
    width: 100%;
    padding: 1rem;
}

/* Submit button: inline, extra horizontal padding, top margin */
.submit-button {
    padding: 1rem 2rem;
    margin-top: 1rem;
}

/* Purple button: passkey / biometric login — distinct from the blue action button */
.passkey-button {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--color-purple), var(--color-purple-dark));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(155, 89, 182, 0.3);
}

.passkey-button:hover {
    background: linear-gradient(135deg, var(--color-purple-dark), var(--color-purple-deeper));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(155, 89, 182, 0.4);
}

.passkey-button:active {
    transform: translateY(0);
}

/* Disabled state: all button types turn grey and show forbidden cursor */
.login-button:disabled,
.submit-button:disabled,
.passkey-button:disabled {
    background: linear-gradient(135deg, var(--color-disabled), var(--color-disabled-dark));
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.login-button:disabled:hover,
.submit-button:disabled:hover,
.passkey-button:disabled:hover {
    background: linear-gradient(135deg, var(--color-disabled), var(--color-disabled-dark));
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}


/* === 9. FEEDBACK MESSAGES === */
/*
 * After a form submission attempt, a message slides in from above:
 * green for success, red for error.
 * Used on both login and contact pages — previously two identical implementations.
 * The animation and base styles are defined once here.
 */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-message,
.form-message {
    margin-top: 1.5rem;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

.login-message.success,
.form-message.success {
    background-color: var(--color-success-bg);
    color: var(--color-success-text);
    border: 1px solid var(--color-success-border);
}

.login-message.error,
.form-message.error {
    background-color: var(--color-error-bg);
    color: var(--color-error-text);
    border: 1px solid var(--color-error-border);
}

.login-message.info,
.form-message.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}


/* === 10. LOGIN PAGE LAYOUT === */
/*
 * Centres a focused white card on a light gradient background so the login form
 * feels contained and separate from the rest of the site.
 * Includes a visual divider between the two login methods and a help link at the bottom.
 */

.login-main {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 1rem 3rem;
    background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
}

.login-container {
    width: 100%;
    max-width: 400px;
}

.login-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
    text-align: center;
}

.login-header {
    margin-bottom: 2rem;
}

.login-header h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.login-header p {
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.5;
}

.login-form {
    text-align: left;
}

/* Login form groups need margin-bottom since they are stacked directly (no flex gap) */
.login-form .form-group {
    margin-bottom: 1.5rem;
}

/* Remember-me checkbox and forgot-password link side by side */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.forgot-password {
    color: var(--color-blue);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: var(--color-blue-dark);
    text-decoration: underline;
}

/* Visual "or" divider with horizontal lines either side, separating login methods */
.login-divider {
    text-align: center;
    margin: 1.5rem 0;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
}

.login-divider::before,
.login-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 25px);
    height: 1px;
    background-color: var(--color-bg-alt);
}

.login-divider::before {
    left: 0;
}

.login-divider::after {
    right: 0;
}

/* Help text and contact link at the bottom of the login card */
.login-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-bg-alt);
    text-align: center;
}

.login-footer p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.contact-link {
    color: var(--color-blue);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--color-blue-dark);
    text-decoration: underline;
}


/* === 11. CONTACT PAGE LAYOUT === */
/*
 * Two-column layout with contact details on the left and the form on the right.
 * Detail cards lift on hover to indicate the information is copyable/interactive.
 * On mobile the columns stack with the form first (see section 12).
 */

.contact-main {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
    min-height: 100vh;
}

.contact-header {
    text-align: center;
    margin-bottom: 4rem;
}

.contact-title {
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.contact-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Two-column grid: info cards on left, form on right */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Contact info cards: phone, address, etc. — lift on hover */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.info-icon {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.info-svg {
    width: 48px;
    height: 48px;
    transition: transform 0.3s ease;
}

.info-card:hover .info-svg {
    transform: scale(1.1);
}

.info-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.info-card p {
    color: var(--color-text-muted);
    line-height: 1.6;
    margin: 0;
}

/* Contact form wrapper */
.contact-form-container {
    display: flex;
    justify-content: center;
}

.form-card {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
}

.form-card h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 2rem;
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Two-column row for short fields (e.g. first name + last name) */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Small italic helper text below a field */
.form-help {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    font-style: italic;
}

/* Inline blue link in consent text */
.privacy-link {
    color: var(--color-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.privacy-link:hover {
    color: var(--color-blue-dark);
    text-decoration: underline;
}


/* === 12. MOBILE RESPONSIVENESS === */
/*
 * On screens narrower than 768px, multi-column layouts collapse to single column,
 * font sizes shrink, and spacing tightens so nothing overflows.
 * Previously fragmented across all three source files — one block per breakpoint here.
 */

@media (max-width: 768px) {
    /* Navigation */
    .nav-container {
        padding: 0.75rem 1rem;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .nav-link {
        font-size: 0.9rem;
    }

    .language-toggle {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    .header {
        min-height: 60px;
    }

    .logo h1 {
        font-size: 1.5rem;
    }

    /* Hero: full-screen on mobile for maximum backdrop visibility */
    .hero {
        height: 100vh;
        margin-top: -60px;
        padding-top: 60px;
    }

    .hero-img {
        object-position: center center;
        filter: brightness(0.6);
    }

    .hero-content {
        padding: 1rem;
        margin-top: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    /* Sections */
    .section-title {
        font-size: 2rem;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .benefit-card {
        padding: 2rem;
    }

    /* Contact page: collapse two-column to single column, form first */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-title {
        font-size: 2.5rem;
    }

    .form-card {
        padding: 2rem;
    }

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

    .contact-info {
        order: 2;
    }

    .contact-form-container {
        order: 1;
    }
}

@media (max-width: 480px) {
    /* Navigation */
    .nav-container {
        padding: 0.5rem 1rem;
    }

    .logo h1 {
        font-size: 1.3rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-link {
        font-size: 0.85rem;
    }

    .language-toggle {
        padding: 0.35rem 0.7rem;
        font-size: 0.85rem;
    }

    /* Hero */
    .hero {
        height: 100vh;
        margin-top: -50px;
        padding-top: 50px;
    }

    .hero-img {
        object-position: center 30%;
        filter: brightness(0.5);
    }

    .hero-content {
        padding: 0.5rem;
        margin-top: 1rem;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    /* Sections */
    .section {
        padding: 3rem 0;
    }

    .container {
        padding: 0 15px;
    }

    /* Login page */
    .login-card {
        padding: 2rem 1.5rem;
    }

    .login-header h2 {
        font-size: 1.75rem;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    /* Contact page */
    .contact-main {
        padding: 4rem 0 2rem;
    }

    .contact-title {
        font-size: 2rem;
    }

    .contact-subtitle {
        font-size: 1rem;
    }

    .form-card {
        padding: 1.5rem;
    }

    .info-card {
        padding: 1.5rem;
    }
}

/* Landscape orientation on mobile: tighter hero content */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        height: 100vh;
        margin-top: -50px;
        padding-top: 50px;
    }

    .hero-content {
        margin-top: 0.5rem;
        padding: 0.5rem;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }
}

/* Very small screens (320px and below) */
@media (max-width: 320px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero-content {
        padding: 0.25rem;
    }
}
