/* Algemene opmaak */
body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 48px 16px;
    background: linear-gradient(135deg, #29000b 0%, #8a0022 38%, #c8102e 72%, #540025 100%);
    position: relative;
    overflow: hidden;
    color: #f9fafb;
}

body::before,
body::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    filter: blur(0);
    z-index: 0;
}

body::before {
    width: 320px;
    height: 320px;
    top: -120px;
    left: -80px;
}

body::after {
    width: 420px;
    height: 420px;
    bottom: -180px;
    right: -60px;
}

.container {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 18px;
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.25);
    padding: 2.4rem 2.2rem;
    max-width: 420px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
}

.logo {
    font-size: 1.9rem;
    font-weight: 800;
    color: #8a0022;
    margin-bottom: 1.2rem;
}

h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #111;
}

.subtitle {
    color: #5f6368;
    font-size: 0.95rem;
    margin-bottom: 1.8rem;
}

.error {
    background-color: rgba(200, 16, 46, 0.12);
    color: #8a0022;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    margin-bottom: 1.1rem;
    text-align: left;
    border: 1px solid rgba(200, 16, 46, 0.25);
}

form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

label {
    font-size: 0.92rem;
    text-align: left;
    color: #222;
    font-weight: 600;
}

input[type="email"],
input[type="password"],
input[type="text"] {
    padding: 0.85rem;
    border: 1px solid rgba(17, 24, 39, 0.12);
    border-radius: 10px;
    width: 100%;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #fff;
    font-family: inherit;
}

input[type="email"]:focus,
input[type="password"]:focus,
input[type="text"]:focus {
    border-color: #c8102e;
    outline: none;
    box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.18);
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    width: 100%;
    padding-right: 140px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(200, 16, 46, 0.12);
    border: 1px solid rgba(200, 16, 46, 0.35);
    color: #8a0022;
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem 1.15rem;
    border-radius: 999px;
    transition: background 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
    min-width: 92px;
    line-height: 1;
}

.password-toggle:hover {
    background: rgba(200, 16, 46, 0.2);
    border-color: rgba(200, 16, 46, 0.6);
}

.password-toggle:focus-visible {
    outline: 2px solid rgba(200, 16, 46, 0.45);
    outline-offset: 2px;
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.6rem;
    font-size: 0.85rem;
    color: #1f2937;
}

.remember-forgot a {
    color: #8a0022;
    text-decoration: none;
    font-weight: 600;
}

.remember-forgot a:hover {
    text-decoration: underline;
}

.btn-primary {
    background: linear-gradient(135deg, #ffffff 0%, #ffe1e9 100%);
    color: #8a0022;
    padding: 0.9rem;
    border: none;
    border-radius: 999px;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-weight: 700;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.16);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 36px rgba(0, 0, 0, 0.2);
}

.register-link {
    margin-top: 1.6rem;
    font-size: 0.92rem;
    color: #1f2937;
}

.register-link a {
    color: #8a0022;
    text-decoration: none;
    font-weight: 700;
}

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