﻿:root {
    font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
    line-height: 1.5;
    font-weight: 400;
    /* Color System (Design Tokens) */
    --color-header-bg: #0066cc;
    --color-header-text: #ffffff;
    --color-bg-app: #f5f5f5;
    --color-bg-app-dark: #242424;
    --color-bg-surface: #ffffff;
    --color-bg-alt: #f8f9fa;
    --color-bg-muted: #f0f0f0;
    --color-bg-accent: #0066cc;
    --color-bg-icon: #0066cc;
    --color-bg-accent-hover: #0052a3;
    --color-bg-accent-alt: #007bff;
    --color-bg-accent-alt-hover: #0056b3;
    --color-bg-gradient-start: #667eea;
    --color-bg-gradient-end: #764ba2;
    --color-bg-danger: #fff5f5;
    --color-bg-danger-muted: #fee;
    --color-bg-disabled: #ccc;
    --color-message-incoming-bg: #e8e8e8;
    --color-date-pill-bg: #e0e0e0;
    --color-scroll-track: #f1f1f1;
    --color-scroll-thumb: #c1c1c1;
    --color-scroll-thumb-hover: #a8a8a8;
    --color-border: #e0e0e0;
    --color-border-subtle: #f0f0f0;
    --color-border-strong: #d3d6db;
    --color-border-soft: #e9ecef;
    --color-border-success: #28a745;
    --color-border-input: #e1e5e9;
    --color-border-danger-soft: #fcc;
    --color-text-primary: #333;
    --color-text-secondary: #666;
    --color-text-muted: #888;
    --color-text-inverse: #ffffff;
    --color-text-link: #646cff;
    --color-text-link-hover: #535bf2;
    --color-text-success: #28a745;
    --color-text-danger: #dc3545;
    --color-text-danger-strong: #c82333;
    --color-text-placeholder: #999;
    --color-text-accent-alt: #495057;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.2);
    --focus-ring: 0 0 0 3px rgba(102,126,234,0.1);
    /*color-scheme: light dark;
    color: rgba(255, 255, 255, 0.87);
    background-color: var(--color-bg-app-dark);*/
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    font-weight: 500;
    color: var(--color-text-link);
    text-decoration: inherit;
}

    a:hover {
        color: var(--color-text-link-hover);
    }

body {
    margin: 0;
    padding: 0;
    min-width: 320px;
    min-height: 100vh;
    min-height: 100dvh; /* Dynamic viewport height for mobile */
    overflow: hidden; /* Prevent body scroll */
    position: fixed; /* Prevent mobile bounce */
    width: 100%;
    height: 100%;
}

#root {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

h1 {
    font-size: 3.2em;
    line-height: 1.1;
}

button {
    border-radius: 8px;
    border: 1px solid transparent;
    padding: 0.6em 1.2em;
    font-size: 1em;
    font-weight: 500;
    font-family: inherit;
    background-color: #1a1a1a; /* Could become variable if themed */
    cursor: pointer;
    transition: border-color 0.25s;
}

    button:hover {
        border-color: var(--color-text-link);
    }

    button:focus,
    button:focus-visible {
        outline: 4px auto -webkit-focus-ring-color;
    }

@media (prefers-color-scheme: light) {
    :root {
        color: #213547; /* Could map to variable if extended */
        background-color: var(--color-bg-surface);
    }

    a:hover {
        color: #747bff; /* Additional token if needed */
    }

    button {
        background-color: #f9f9f9; /* Additional token if needed */
    }
}

.content {
    overflow: auto;
    height: 100%;
}

/* Landing page — mirrors auth login-card layout using shared design tokens */
.landing-container {
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    grid-template-columns: 1fr minmax(400px, 500px) 1fr;
    align-items: center;
    background-color: var(--color-bg-app);
    padding: 40px 20px;
    box-sizing: border-box;
}

.landing-card {
    background: var(--color-bg-surface);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 50px 40px;
    text-align: center;
    grid-column: 2;
    justify-self: center;
}

.landing-logo {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto 24px;
}

.landing-title {
    color: var(--color-text-primary);
    margin: 0 0 8px;
    font-size: 2rem;
    font-weight: 600;
}

.landing-content {
    color: var(--color-text-secondary);
    margin: 0;
    font-size: 1rem;
    white-space: pre-line;
}

.landing-content a {
    color: var(--color-text-link);
    text-decoration: underline;
    word-break: break-all;
}

.landing-content a:hover {
    color: var(--color-text-link-hover);
}

@media (max-width: 768px) {
    .landing-container {
        grid-template-columns: 1fr;
        padding: 20px 15px;
    }

    .landing-card {
        padding: 40px 30px;
        grid-column: 1;
        max-width: 100%;
    }

    .landing-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .landing-container {
        padding: 15px 10px;
    }

    .landing-card {
        padding: 30px 25px;
    }

    .landing-title {
        font-size: 1.6rem;
    }
}