/* ============================================================
   FoodBook – Gedeelde stylesheet
   Gebruik: voeg class="new-style" toe aan de <body>
   ============================================================ */

/* ── Google Fonts import ─────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=PT+Serif:wght@700&family=Open+Sans:wght@300;400;600&display=swap');


:root {
    --bg: #e8e2d7;
    --card: #f7f7f7;
    --accent: #b99b57;
    --text: #1e1d1b;
    --muted: #5e584d;
    --radius: 22px;
    --shadow: 0 10px 30px rgba(0, 0, 0, .06);
    --gold:        #b4985a;
    --gold-dark:   #9a7f45;
    --gold-light:  #cdb47a;
    --cream:       #f3ede1;
    --navy:        #21546d;
    --text-dark:   #21546d;
    --text-muted:  #5a7d8f;
    --border:      #c5b89a;
}

/* Herstel Bootstrap .alert standaard padding/margin */
.new-style .alert {
    padding: var(--bs-alert-padding-y) var(--bs-alert-padding-x);
    margin-bottom: var(--bs-alert-margin-bottom);
}

.new-style {
    height: 100%;
    overflow: hidden;
    font-family: 'Open Sans', Calibri, sans-serif;
    background: var(--cream);
    color: var(--text-dark);

}

/* ── Two-column layout ───────────────────────────────────── */
.new-style .login-wrapper {
    display: grid;
    grid-template-columns: 58% 42%;
    height: 100vh;
    overflow: hidden;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.new-style .hero-col {
    position: relative;
}

.new-style .logo {
    position: absolute;
    left: 32px;
    z-index: 10;
}

.new-style .logo img {
    width: 160px;
}

.new-style .form-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 56px;
    background: rgba(243, 237, 225, 0.9);
    position: relative;
}

/* Subtiele achtergrond textuur */
.new-style .form-col::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23b4985a' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.new-style .form-inner {
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
}

/* ── Titels ──────────────────────────────────────────────── */
.new-style .form-inner h1 {
    font-family: 'PT Serif', Georgia, serif;
    font-size: 2.6rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
    color: #000;
}

/* ── Subtitel ────────────────────────────────────────────── */
.new-style .form-inner .subtitle {
    font-size: 0.88rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.6;
    margin-bottom: 40px;
}

/* ── Veldgroep ───────────────────────────────────────────── */
.new-style .field-group {
    margin-bottom: 32px;
}

.new-style .field-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}

.new-style .field-group input {
    width: 100%;
    border: none;
    border-bottom: 1.5px dotted var(--border);
    background: transparent;
    padding: 6px 0 8px 5px;
    font-size: 1rem;
    font-family: 'Open Sans', Calibri, sans-serif;
    color: var(--text-dark);
    outline: none;
    transition: border-color 0.2s;
}

.new-style .field-group input:focus {
    border-bottom-color: var(--gold);
}

/* ── Wachtwoord vergeten link ────────────────────────────── */
.new-style .forgot-link {
    display: block;
    text-align: right;
    color: var(--gold);
    font-size: 0.82rem;
    text-decoration: none;
    margin-top: -16px;
    margin-bottom: 40px;
    transition: color 0.2s;
}

.new-style .forgot-link:hover {
    color: var(--gold-dark);
}

/* ── Primaire knop ───────────────────────────────────────── */
.new-style .btn-login {
    display: block;
    width: 100%;
    padding: 16px;
    background: var(--gold);
    color: #fff;
    font-family: 'Open Sans', Calibri, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    margin-bottom: 20px;
}

.new-style .btn-login:hover {
    background: var(--gold-dark);
    transform: translateY(-1px);
}

.new-style .btn-login:active {
    transform: translateY(0);
}

/* ── Terug naar inloggen link ────────────────────────────── */
.new-style .back-link {
    display: block;
    text-align: center;
    color: var(--gold);
    font-size: 0.82rem;
    text-decoration: none;
    transition: color 0.2s;
}

.new-style .back-link:hover {
    color: var(--gold-dark);
}

.new-style .back-link::before {
    content: '← ';
}


/* ── Compass Group branding ──────────────────────────────── */
.new-style .compass-logo {
    display: block;
    margin: 20px auto 0;
    width: 140px;
    opacity: 0.7;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
    .new-style .login-wrapper {
        grid-template-columns: 1fr;
        height: auto;
        overflow: auto;
    }

    .new-style {
        overflow: auto;
    }

    .new-style .hero-col {
        height: 240px;
    }

    .new-style .form-col {
        padding: 48px 28px 80px;
    }
}

.new-style .container {
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto;
}

.new-style .topbar {
    background: rgba(255, 255, 255, .80);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 1px 0 rgba(0, 0, 0, .04);
}

.new-style .topbar-inner {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px 0;
}

.new-style .logo {
    display: inline-flex;
    align-items: flex-end;
    text-decoration: none;
    position: relative;
}

.new-style .nav {
    display: flex;
    align-items: center;
    gap: clamp(14px, 2vw, 34px);
    flex-wrap: wrap;
    justify-content: center;
}

.new-style .nav a {
    text-decoration: none;
    color: #222;
    font-size: 1.15rem;
}

.new-style .nav a:hover {
    text-decoration: underline;
    color: #222;
    font-size: 1.15rem;
}

.new-style .logout-btn {
    border: 0;
    background: var(--accent);
    color: #fff;
    border-radius: 16px;
    padding: 14px 26px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow);
    text-decoration: none;
}

.new-style .hero {
    min-height: 120px;
    background: url('/assets/img/backgrounds/interface-background.jpg') center/cover no-repeat;
    overflow: hidden;
    position: relative;
    margin-top: -92px;
    padding-top: 92px;
}

.new-style .content {
    padding: 40px 0 56px;
    text-align: left;
    font-size: 14px;
}

.new-style .content a {
    color: var(--navy);
    text-decoration: none;
}

.new-style .content a:hover {
    color: var(--gold);
}

.new-style .grid {
    display: grid;
    grid-template-columns: 1fr 405px;
    gap: 26px;
    align-items: start;
}

.new-style .cards-wrap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    align-content: start;
}

.new-style .card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px 20px 20px;
    min-height: 160px;
}

.new-style .card h2 {
    font-family: 'PT Serif', Georgia, "Times New Roman", serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 10px;
    line-height: 1.2;
}

.new-style .card ul {
    margin: 0;
    padding-left: 18px;
    list-style: disc;
    color: var(--text-dark);
    font-size: 15px;
    line-height: 1.65;
}

.new-style .card ul li a {
    color: var(--navy);
    text-decoration: none;
    font-size: 15px;
}

.new-style .card ul li a:hover {
    color: var(--gold);
    text-decoration: underline;
}

.new-style .menu-card-group {
    display: grid;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 26px;
    padding: 0;
}

.new-style .menu-card {
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    border-radius: var(--radius);
    box-shadow: none;
    min-height: 80px;
}

.new-style .menu-card-group .menu-card:first-child {
    border-radius: var(--radius);
}

.new-style .menu-card-group .menu-card:last-child {
    border-radius: var(--radius);
}

.new-style .menu-card h2 {
    color: #fff;
    font-size: clamp(20px, 2.1vw, 28px);
    margin: 0;
    width: 100%;
    overflow-wrap: anywhere;
    text-align: left;
}

.new-style .menu-card-secondary {
    background: var(--navy);
}

.new-style .news-card {
    height: 730px;
    overflow-y: auto;
}

.new-style .news-card h2 {
    font-size: 20px;
    margin-bottom: 14px;
}

.new-style .card .news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.new-style .card .news-list li {
    padding: 10px 0;
}

.new-style .card .news-list li:first-child {
    border-top: none;
    padding-top: 0;
}

.new-style .card .news-list li a {
    display: block;
    color: var(--navy);
    text-decoration: none;
}

.new-style .card .news-list li a:hover {
    color: var(--navy);
    text-decoration: none;
}

.new-style .news-list h3 {
    font-family: 'PT Serif', Georgia, serif;
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 3px;
    line-height: 1.3;
    color: var(--navy);
}

.new-style .news-list span {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.4;
}

.new-style .news-list i {
    font-style: normal;
    color: var(--gold);
    margin-left: 4px;
}

.new-style .card .news-list li a:hover i {
    text-decoration: underline;
}

.new-style .empty-card {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}

.new-style .muted {
    color: var(--muted);
}

@media (max-width: 1100px) {
    .new-style .news-card {
        min-height: 220px;
    }
}

@media (max-width: 720px) {
    .new-style .container {
        width: min(100% - 24px, 1200px);
    }

    .new-style .topbar-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .new-style .nav {
        justify-content: flex-start;
    }

    .new-style .grid {
        grid-template-columns: 1fr;
    }

    .new-style .cards-wrap {
        grid-template-columns: repeat(2, 1fr);
    }

    .new-style .menu-card h2 {
        font-size: 22px;
    }

    .new-style .hero {
        min-height: 180px;
    }

    .new-style .hero::before {
        width: 300px;
        height: 190px;
        left: 3%;
    }
}
