:root {
    --primary: #2f6f4f;
    --bg: #f7f7f5;
    --text: #222;
    --card-bg: #ffffff;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
}

.topbar {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--primary);
    color: white;
    z-index: 100;
}

.icon-button {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 4px 8px;
}

.topbar-title {
    font-weight: 600;
    font-size: 1.1rem;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 320px;
    height: 100%;
    background: var(--card-bg);
    box-shadow: 2px 0 8px rgba(0,0,0,0.2);
    transition: left 0.25s ease;
    z-index: 200;
    padding: 16px;
}

.menu-overlay.open {
    left: 0;
}

.menu-overlay ul {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.menu-overlay li {
    margin: 16px 0;
}

.menu-overlay a {
    text-decoration: none;
    color: var(--text);
    font-size: 1.1rem;
}

.start-page {
    margin: 0;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

.bg-video {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: -2;
}

.bg-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.45);
    z-index: -1;
}

.start-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 24px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 320px;
    background: rgba(255,255,255,0.12);
    padding: 20px;
    border-radius: 12px;
    backdrop-filter: blur(6px);
}

.login-form label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
    font-size: 0.9rem;
}

.login-form input {
    padding: 10px;
    border-radius: 6px;
    border: none;
    font-size: 1rem;
}

.login-form button {
    margin-top: 8px;
    padding: 10px;
    border: none;
    border-radius: 6px;
    background: var(--primary);
    color: white;
    font-size: 1rem;
    cursor: pointer;
}

.forgot-link {
    color: white;
    margin-top: 12px;
    text-decoration: underline;
    font-size: 0.9rem;
}

body.app-bg {
    background-image: url('/static/images/background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
}

.content {
    padding: 16px;
    max-width: 600px;
    margin: 16px auto;
    background: rgba(255, 255, 255, 0.88);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.photo-bg {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-image: url('/static/images/background.jpg');
    background-size: cover;
    background-position: center;
    padding: 24px;
}

.photo-bg h1 {
    color: var(--text);
    margin-bottom: 24px;
}

.photo-bg .login-form {
    background: rgba(255, 255, 255, 0.9);
}

.photo-bg .login-form label {
    color: var(--text);
}

.photo-bg .forgot-link {
    color: var(--primary);
}

a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

a:hover {
    text-decoration: underline;
}

a:visited {
    color: var(--primary);
}

button,
input[type="submit"] {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 16px;
    font-size: 1rem;
    cursor: pointer;
}

button:hover {
    opacity: 0.9;
}

ul {
    list-style: none;
    padding: 0;
}

ul li {
    background: white;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
}

.logo-large {
    width: 320px;
    max-width: 70%;
    margin-bottom: 16px;
}

.logo-small {
    height: 28px;
    vertical-align: middle;
}