@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

:root {
    --surface-white: #FFF;
    --surface-gray: #F9FAFB;
    --primary-color: #70B62B;
    --danger-color: #EE4040;
    --text-secondary-color: #4B5563;
    --text-primary-color: #1D2849;
    --text-tertiary-color: #9CA3AF;
    --border-light: #F9FAFB ;
    --border-dark: #E5E7EB ;
    --border-radius-default: 0.25rem;
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Nunito Sans', sans-serif;
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.10), 0 4px 6px -4px rgba(0, 0, 0, 0.10);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 2.5rem;
    --spacing-3xl: 3rem;
    --spacing-4xl: 3.5rem;
    --spacing-5xl: 5rem;
    
}
body {
    margin: 0;
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-height: 100dvh;
    background: var(--surface-gray);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    color: var(--text-primary-color);
}

h1 {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-style: normal;
    font-weight: 900;
    line-height: 3rem; /* 133.333% */
}

h2 {
    font-family: var(--font-heading);
    font-size: 1.875rem;
    font-style: normal;
    font-weight: 800;
    line-height: 2.25rem; /* 120% */
    margin: 0;
}

/* h2::after {
    content: "";
    display: block;
    width: 6rem;
    height: 0.3rem;
    background-color: var(--primary-color);
    margin-top: 0.5rem;
} */

a {
    text-decoration: none;
    color: var(--text-secondary-color);

    &:hover {
        color: hsl(from var(--text-secondary-color) h s calc(l * 1.2));
    }
}

.styled-link {
    text-decoration: none;
    color: var(--primary-color);
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
    
    &::after {
        content: '›';
        transition: transform 0.3s ease;
    }
    
    &:hover {
        color: hsl(from var(--primary-color) h s calc(l * 1.2));
        
        &::after {
            transform: translateX(4px);
        }
    }
}

footer {
    position: sticky;
    bottom: 0;
    display: flex;
    justify-content: center;
    background: var(--background);
    margin: var(--spacing-xl);
}
header {
    display: flex;
    justify-content: center;
    position: sticky;
    margin: var(--spacing-5xl);
    background: var(--background);
}

label {
    display: flex;
    font-size: 1rem;
    font-weight: 700;
    flex-direction: column;
}

.login-container {
    display: flex;
    width: 25rem;
    padding: var(--spacing-lg, 1.5rem);
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-lg);
    border-radius: var(--border-radius-default, 0.25rem);
    border: 1px solid var(--border-light, #F9FAFB);
    background: var(--surface-white, #FFF);
    box-shadow: var(--shadow-lg);
}

main {
    margin-inline: auto;
}

.btn-primary {
    background-color: #70B62B;
    border-radius: 360px;
    border: none;
    color: white;
    font-weight: 700;
}

.btn-lg {
    padding: 12px 16px 12px 16px;
    width: 100%;
}

form {
    display: flex;
    flex-direction: column;
    width: 100%;
}

form label {
    margin-bottom: 0.25rem; /* kleine spacing onder label */
}

form input {
    margin-bottom: 1rem; /* grotere spacing onder input */
}

form button {
    margin-top: 0.5rem; /* extra ruimte boven button */
}



input {
    border: 1px solid var(--border-dark);
    border-radius: 4px;
    padding: 8px;
    box-shadow: var(--shadow-sm);
    color: var(--text-secondary-color);
}

/* button, input, optgroup, select, textarea {
    font-family: inherit;
    font-size: inherit;
    padding-block: .5rem;
    padding-inline: 1rem;
    border-radius: .25rem;
} */
*, *::after, *::before {
    box-sizing: border-box;
}

button {
    --background: var(--primary-color);
    transition: background-color 0.3s ease;
    cursor: pointer;
    border-radius: 360px;
    border: none;
    font-weight: 700;
    &.default {
        --background: var(--primary-color);
    }
    &.warning{
        --background: var(--danger-color);
    }
    background-color: var(--background);
    color: white;
    &:hover {
        background-color: hsl(from var(--background) h s calc(l * 1.2));
    }
    &:active {
        background-color: hsl(from var(--background) h s calc(l * 1.5));
    }
    &:focus {
        outline-color: hsl(from var(--background) h s calc(l * 2));
    }
    padding: 12px 16px 12px 16px;
    width: 100%;
    &.small {
        padding: initial;
        display: inline;
    }
}
