/* stylehome.css - Styling voor de inlog- en landingspagina (Home) */

/* Basisvariabelen */
:root {
    --mushroom-radius: 12px;
    --mushroom-font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    --mushroom-text: #334155;
    --mushroom-primary: #9333ea;       /* Krachtig lila/paars voor voldoende contrast */
    --mushroom-primary-hover: #7e22ce;
    --mushroom-accent: #f59e0b;        /* Warme accentkleur */
    --mushroom-heading: #4b0082;       /* Donker indigo/paars voor koppen */
    --mushroom-bg: #f3e8ff;            /* Zachte lila tint */
    --gradient-end: #e9d5ff;
    --body-bg: #faf5ff;
    --mushroom-card: #ffffff;
    --mushroom-shadow: 0 4px 16px rgba(75, 0, 130, 0.08);
    --mushroom-light-shadow: 0 0 0 3px rgba(147, 51, 234, 0.15);
    --border-color: #e2e8f0;
    --error-bg: #fee2e2;
    --error-text: #b91c1c;
}

*, *::before, *::after {
    box-sizing: border-box;
}

/* Algemene layout */
body {
    font-family: var(--mushroom-font);
    color: var(--mushroom-text);
    background: linear-gradient(rgba(250, 245, 255, 0.92), rgba(250, 245, 255, 0.92)), 
                url('images/rotterdam-skyline.jpg') center/cover no-repeat fixed;
    background-color: var(--body-bg);
    font-size: 0.95rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 2rem 1rem;
}

/* Hero-sectie */
.login-hero {
    width: 100%;
    max-width: 440px;
    padding: 1.75rem 1.5rem;
    background: linear-gradient(135deg, var(--mushroom-bg), var(--gradient-end));
    text-align: center;
    border-radius: var(--mushroom-radius);
    box-shadow: var(--mushroom-shadow);
    border: 1px solid rgba(255, 255, 255, 0.6);
    margin-bottom: 1.5rem;
    animation: fadeIn 0.8s ease-in-out;
}

.hero-logo {
    max-width: 110px;
    height: auto;
    margin-bottom: 0.75rem;
    transition: transform 0.3s ease;
}

.hero-logo:hover {
    transform: scale(1.05);
}

.hero-content h1 {
    font-size: 2.1rem;
    font-weight: 700;
    color: var(--mushroom-heading);
    margin: 0 0 0.4rem 0;
    letter-spacing: -0.02em;
}

.hero-content .tagline {
    font-size: 1rem;
    font-weight: 500;
    color: var(--mushroom-heading);
    opacity: 0.85;
    margin: 0;
}

/* Login-container & Kaart */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 440px;
}

.login-card {
    background: var(--mushroom-card);
    width: 100%;
    padding: 2.2rem 2rem;
    border-radius: var(--mushroom-radius);
    box-shadow: var(--mushroom-shadow);
    border: 1px solid var(--border-color);
    text-align: center;
    animation: slideUp 0.6s ease-out;
}

/* Card-header */
.card-header {
    margin-bottom: 1.75rem;
}

.card-header h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--mushroom-heading);
    margin: 0;
    position: relative;
    display: inline-block;
}

.card-header h2::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 45px;
    height: 3px;
    background: var(--mushroom-accent);
    border-radius: 2px;
}

/* Formulier stijlen */
.form-group {
    margin-bottom: 1.25rem;
    text-align: left;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #64748b;
    stroke: currentColor;
    fill: none;
    pointer-events: none;
    transition: color 0.2s ease;
}

.form-group input {
    width: 100%;
    min-height: 44px;
    padding: 0.7rem 0.85rem 0.7rem 2.6rem;
    border: 1px solid var(--border-color);
    border-radius: var(--mushroom-radius);
    font-size: 0.95rem;
    font-family: inherit;
    background: #ffffff;
    color: var(--mushroom-text);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
    border-color: var(--mushroom-primary);
    box-shadow: var(--mushroom-light-shadow);
    outline: none;
}

.form-group input:focus + .input-icon,
.input-wrapper:focus-within .input-icon {
    color: var(--mushroom-primary);
}

/* Login-knop */
.login-btn {
    background: var(--mushroom-primary);
    color: #ffffff;
    border: none;
    min-height: 46px;
    padding: 0.75rem 1.2rem;
    border-radius: var(--mushroom-radius);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    width: 100%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.login-btn:hover {
    background: var(--mushroom-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.25);
}

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

.login-btn:focus-visible {
    outline: none;
    box-shadow: var(--mushroom-light-shadow);
}

.login-btn:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Links */
.forgot-password {
    display: inline-block;
    margin-top: 1.25rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--mushroom-heading);
    text-decoration: none;
    transition: color 0.2s;
}

.forgot-password:hover {
    color: var(--mushroom-primary);
    text-decoration: underline;
}

/* Meldingen */
.error-melding {
    background: var(--error-bg);
    color: var(--error-text);
    border: 1px solid #fecaca;
    padding: 0.75rem 1rem;
    border-radius: var(--mushroom-radius);
    margin-top: 1.25rem;
    font-size: 0.88rem;
    font-weight: 500;
    text-align: center;
    animation: shake 0.4s ease-in-out;
}

/* Animaties */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-4px); }
    40%, 80% { transform: translateX(4px); }
}

/* Responsieve optimalisaties */
@media (max-width: 480px) {
    body {
        padding: 1.25rem 0.75rem;
        justify-content: flex-start;
    }

    .login-hero {
        padding: 1.25rem 1rem;
        margin-bottom: 1rem;
    }

    .hero-content h1 {
        font-size: 1.75rem;
    }

    .hero-content .tagline {
        font-size: 0.9rem;
    }

    .login-card {
        padding: 1.5rem 1.25rem;
    }

    .card-header h2 {
        font-size: 1.4rem;
    }
}
