/* Global styles for Project Nova
 *
 * We use CSS variables for colours and fonts so that each tenant can
 * override them via Branding::renderCriticalCss(). The base values are
 * chosen for high contrast and calm aesthetics, reducing cognitive load.
 */

:root {
    --primary: #0d47a1; /* fallback primary colour */
    --secondary: #1976d2; /* fallback secondary colour */
    --font-family: 'Inter', sans-serif;
    --bg: #f9f9f9;
    --text: #212121;
}

body {
    margin: 0;
    font-family: var(--font-family);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    padding: 1rem;
}

main {
    max-width: 480px;
    margin: 0 auto;
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

h1 {
    margin-top: 0;
    color: var(--primary);
}

button {
    display: inline-block;
    background-color: var(--primary);
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

button:hover:not(:disabled) {
    background-color: var(--secondary);
}

form.login-form label {
    display: block;
    margin-bottom: 0.5rem;
}

form.login-form input {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.error {
    margin-top: 1rem;
    padding: 0.75rem;
    background-color: #ffebee;
    color: #c62828;
    border-radius: 4px;
}

/* Immersive mode for video players: hide UI when inactive */
.immersive-player {
    position: relative;
}
.immersive-player video {
    width: 100%;
    height: auto;
    display: block;
}
.immersive-player .controls {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    padding: 0.5rem;
    display: flex;
    justify-content: space-between;
    transition: opacity 0.5s ease;
}
.immersive-player.inactive .controls {
    opacity: 0;
    pointer-events: none;
}