:root {
    /* This whole app is designed as a light theme (hardcoded light colors below) and never opts out
       of the browser's own "forced/auto dark mode" (common on Chrome/Edge/mobile) - without this,
       that feature auto-inverts every element's colors using its own heuristics, which is exactly
       what made the Register page's Business Type dropdown render its "Restaurant" option as an
       unreadable white-on-white row. Declaring the scheme here (plus the <meta name="color-scheme">
       tag in _Host.cshtml/Scan.cshtml) tells the browser this page is intentionally light, so it
       renders every element - including native <select> popups - using its own real colors. */
    color-scheme: light;
    --primary-color: #e50914; /* CinSnacks Red */
    --secondary-color: #b80710;
    --bg-main: #f8fafc;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --text-primary: #1e293b;
    --text-muted: #64748b;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Glassmorphism / Modern Card Classes */
.glass-container {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border-radius: 16px;
}

.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: transparent;
    border: none;
    box-shadow: none;
}

.auth-card {
    background: rgba(20, 20, 20, 0.5);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem;
    border-radius: 24px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.7), inset 0 0 0 1px rgba(255,255,255,0.05);
}

.auth-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    text-align: center;
}

.auth-subtitle {
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 2rem;
}

.auth-card .input-group,
.auth-wrapper .input-group,
.split-auth-card .input-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.auth-card .input-group label,
.auth-wrapper .input-group label,
.split-auth-card .input-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
}

.auth-card .input-group > :not(:first-child),
.auth-wrapper .input-group > :not(:first-child),
.split-auth-card .input-group > :not(:first-child) {
    border-radius: 12px !important;
    margin-left: 0 !important;
}

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.glass-input {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px !important;
    padding: 1rem;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    margin-left: 0 !important;
}

select.glass-input option {
    background: #ffffff;
    color: var(--text-primary);
}

.glass-input::placeholder {
    color: var(--text-muted);
}

.glass-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.2), inset 0 0 0 1px rgba(229, 9, 20, 0.1);
    background: #ffffff;
}

.glass-button {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 1rem;
    width: 100%;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4);
}

.glass-button:hover {
    background: #f40612;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(229, 9, 20, 0.5);
}

.glass-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    text-align: center;
    font-weight: 500;
}

.alert-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    text-align: center;
    font-weight: 500;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.25s ease-out;
}

/* Starts at 0.55 opacity rather than fully transparent - on Blazor Server, this class is already on
   the root container in the server-prerendered markup, so a full 0-opacity start made the very first
   paint (before the circuit connects and finishes loading real data) look like a broken/empty page
   flash rather than a subtle fade. */
@keyframes fadeIn {
    from { opacity: 0.55; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}
