/* css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght=300;400;500;600;700&display=swap');

/* ==========================================================================
   Global Reset & Base Styles
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #061b1f 20%, #0d2a30 100%);
    color: #f8fafc;
    display: flex;
    flex-direction: column; /* Zorgt dat elementen onder elkaar komen */
    justify-content: flex-start; /* Start bovenaan de pagina */
    min-height: 100vh;
    padding: 20px;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    text-align: center;
}

.subtitle {
    color: #94a3b8;
    font-size: 0.95rem;
    text-align: center;
    margin-bottom: 30px;
}

/* ==========================================================================
   Form Layouts (Login & Register Containers)
   ========================================================================== */
.register-container {
    background: rgba(11, 37, 44, 0.8); /* Exact dezelfde blauwgroene kleur als de header */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 500px;
    width: 100%;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    margin-top: 100px; /* Ruimte maken onder de gefixeerde header */
    margin-bottom: 80px; /* Geeft ademruimte boven de vaste footer */
    align-self: center; /* Zorgt dat de container horizontaal gecentreerd blijft binnen de body */
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-group {
    margin-bottom: 20px;
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.85rem;
    color: #cbd5e1;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.form-group input:focus {
    border-color: #38bdf8;
    outline: none;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.form-group input::placeholder {
    color: #64748b;
}

/* Primary Submit Button */
.btn-submit {
    width: 100%;
    padding: 14px;
    background-color: #38bdf8;
    color: #0f172a;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.2s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-submit:hover {
    background-color: #7dd3fc;
}

/* Links below forms (Switch between Login/Register) */
.login-link {
    text-align: center;
    margin-top: 24px;
    font-size: 0.9rem;
    color: #94a3b8;
}

.login-link a {
    color: #38bdf8;
    text-decoration: none;
    font-weight: 600;
}

.login-link a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Status Messages (Error & Success boxes)
   ========================================================================== */
.status {
    padding: 14px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 24px;
    text-align: center;
}

.success {
    background-color: rgba(22, 163, 74, 0.2);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.4);
}

.error {
    background-color: rgba(220, 38, 38, 0.2);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.4);
}

/* ==========================================================================
   Header Fix (Strak bovenaan de pagina)
   ========================================================================== */
.site-header {
    width: 100%;
    background-color: rgba(11, 37, 44, 0.8); /* Diepe blauwgroene kleur met lichte transparantie */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 30px;
    position: fixed; /* Blijft altijd bovenaan staan, ook bij scrollen */
    top: 0;
    left: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.3rem;
    font-weight: 700;
    color: #38bdf8; /* Cyan accentkleur */
    text-decoration: none;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   Header Navigatie Styling (Horizontaal zonder stippen)
   ========================================================================== */
.main-navigation ul {
    display: flex;          /* Zet de links naast elkaar van links naar rechts */
    list-style: none;       /* Haalt de witte stippen/bullets weg */
    margin: 0;
    padding: 0;
    gap: 20px;              /* Ruimte tussen de links */
}

.main-navigation li {
    display: inline-block;  /* Zorgt dat de lijstitems zich als blokken naast elkaar gedragen */
}

.main-navigation a {
    color: #cbd5e1;
    text-decoration: none;  /* Haalt de standaard onderstreping van de link weg */
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.main-navigation a:hover {
    color: #38bdf8;         /* Kleurt mooi cyan als je er met de muis overheen gaat */
}

/* ==========================================================================
   Footer Fix (Strak vastgepind op de bodem)
   ========================================================================== */
.site-footer {
    position: fixed; /* Blijft altijd onderaan staan, ook tijdens het scrollen */
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #0b252c;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 30px;
    z-index: 1000;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.85rem;
    color: #64748b; /* Subtiele grijze tekst */
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #38bdf8; /* Cyan oplichting bij hover */
}