:root {
    color-scheme: light;
    --bg: #f8fafd;
    --surface: #ffffff;
    --surface-hover: #f1f6ff;
    --line: #dfe5f2;
    --text: #202124;
    --muted: #5f6368;
    --blue: #1a73e8;
    --blue-hover: #1558b0;
    --red: #ea4335;
    --yellow: #fbbc04;
    --green: #34a853;
    --shadow: 0 10px 28px rgba(60, 64, 67, 0.14);
    --shadow-hover: 0 18px 38px rgba(60, 64, 67, 0.2);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--bg);
}

body {
    min-height: 100vh;
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--bg);
}

a {
    color: inherit;
}

button,
input {
    font: inherit;
}

.login-page {
    display: grid;
    place-items: center;
    padding: 24px;
}

.login-shell {
    width: min(100%, 440px);
}

.login-card,
.empty-state {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.login-card {
    padding: 34px;
}

.brand-mark {
    display: grid;
    width: 56px;
    height: 56px;
    margin-bottom: 26px;
    place-items: center;
    border-radius: 16px;
    color: var(--blue);
    font-weight: 800;
    background: #e8f0fe;
    box-shadow: inset 0 -4px 0 rgba(26, 115, 232, 0.12);
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--blue);
    font-size: 0.77rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 10px;
    font-size: clamp(2rem, 5vw, 3.6rem);
    line-height: 1;
}

.login-card h1 {
    font-size: 2.4rem;
}

.login-intro {
    margin-bottom: 28px;
    color: var(--muted);
    line-height: 1.65;
}

.alert {
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid #fad2cf;
    border-radius: 14px;
    color: #a50e0e;
    background: #fce8e6;
}

.login-form {
    display: grid;
    gap: 12px;
}

.login-form label {
    color: var(--muted);
    font-size: 0.95rem;
}

.login-form input {
    width: 100%;
    min-height: 52px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    outline: none;
    color: var(--text);
    background: var(--surface);
    transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.login-form input:focus {
    border-color: var(--blue);
    background: var(--surface);
    box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.12);
}

.login-form button,
.logout-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 800;
    text-decoration: none;
    background: var(--blue);
    cursor: pointer;
    transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.login-form button {
    margin-top: 8px;
}

.login-form button:hover,
.logout-button:hover {
    transform: translateY(-2px);
    background: var(--blue-hover);
    box-shadow: 0 8px 18px rgba(26, 115, 232, 0.24);
}

.topbar {
    display: flex;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0 22px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.topbar h1 {
    margin-bottom: 0;
}

.logout-button {
    min-width: 120px;
    padding: 0 18px;
}

.gallery-wrap {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 54px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    align-items: start;
}

.photo-card {
    position: relative;
    overflow: hidden;
    border: 0;
    border-radius: 10px;
    background: transparent;
    box-shadow: none;
}

.photo-link {
    display: block;
    width: 100%;
    border: 0;
    overflow: hidden;
    border-radius: 10px;
    background: transparent;
    cursor: zoom-in;
    text-decoration: none;
}

.photo-link img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.empty-state {
    padding: 42px;
    text-align: center;
}

.empty-state h2 {
    margin-bottom: 10px;
}

.empty-state p {
    margin-bottom: 0;
    color: var(--muted);
}

/* GLightbox sluit aan op de lichte Material-achtige stijl van de galerij. */
.gcontainer .gslide-description {
    background: var(--surface);
}

.gcontainer .gslide-title {
    color: var(--text);
    font-weight: 800;
}

.gcontainer .gslide-desc {
    color: var(--muted);
}

.glightbox-download {
    display: inline-flex;
    min-height: 38px;
    padding: 0 16px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 800;
    text-decoration: none;
    background: var(--blue);
}

@media (max-width: 920px) {
    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .logout-button {
        width: 100%;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .login-card,
    .empty-state {
        padding: 24px;
    }
}
