/* Reset og generel styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
}

/* Header styling */
header {
    background-color: #2b2b2b;
    padding: 20px 40px;
    color: white;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.header-logo {
    display: flex;
    align-items: center;
}

.header-logo .logo {
    width: 60px;
    height: 60px;
    display: block;
}

h1 {
    font-size: 32px;
    font-weight: normal;
    margin: 0;
}

/* Main content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
}

/* Form container */
.form-container {
    max-width: 500px;
    margin: 50px auto;
    background-color: #ffffff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-container h2 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 600;
}

/* Form gruppe styling */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
    font-size: 14px;
}

.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    background-color: #fff;
    transition: border-color 0.3s ease;
    cursor: pointer;
}

.form-group select:focus {
    outline: none;
    border-color: #4CAF50;
}

/* Submit knap styling */
.btn-submit {
    width: 100%;
    padding: 14px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
}

.btn-submit:hover {
    background-color: #45a049;
    transform: translateY(-2px);
}

    .btn-submit:active {
        transform: translateY(0);
    }

    .form-input {
        width: 100%;
        padding: 12px 15px;
        border: 2px solid #e0e0e0;
        border-radius: 8px;
        font-size: 16px;
        background-color: #fff;
        transition: border-color 0.3s ease;
    }

    .form-input:focus {
        outline: none;
        border-color: #4CAF50;
    }

    .form-select {
        width: 100%;
        padding: 12px 15px;
        border: 2px solid #e0e0e0;
        border-radius: 8px;
        font-size: 16px;
        background-color: #fff;
        transition: border-color 0.3s ease;
        cursor: pointer;
    }

    .form-select:focus {
        outline: none;
        border-color: #4CAF50;
    }

    .additional-fields {
        margin-top: 20px;
        padding-top: 20px;
        border-top: 2px solid #f0f0f0;
    }

    .radio-group {
        display: flex;
        gap: 20px;
        margin-top: 8px;
        align-items: center;
    }

    .radio-label {
        display: inline-flex;
        align-items: center;
        cursor: pointer;
        font-size: 16px;
        color: #555;
        vertical-align: middle;
    }

    .radio-label input[type="radio"] {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        width: 18px;
        height: 18px;
        border: 2px solid #999;
        border-radius: 50%;
        margin: 0 8px 0 0;
        cursor: pointer;
        position: relative;
        flex-shrink: 0;
    }

    .radio-label input[type="radio"]:checked {
        border-color: #4CAF50;
    }

    .radio-label input[type="radio"]:checked::after {
        content: '';
        width: 10px;
        height: 10px;
        background-color: #4CAF50;
        border-radius: 50%;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .radio-label span {
        user-select: none;
        line-height: 1;
        transform: translateY(-3px);
        display: inline-block;
    }

    .form-hint {
        display: block;
        margin-top: 6px;
        font-size: 13px;
        color: #666;
        font-style: italic;
    }

/* Password Overlay Styling */
.password-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-overlay.hidden {
    display: none;
}

.password-box {
    background-color: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    text-align: center;
    min-width: 320px;
    animation: fadeInScale 0.3s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.password-box h3 {
    margin-bottom: 20px;
    color: #333;
    font-size: 22px;
    font-weight: 600;
}

#password-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 15px;
    transition: border-color 0.3s ease;
}

#password-input:focus {
    outline: none;
    border-color: #4CAF50;
}

.password-btn {
    width: 100%;
    padding: 12px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
}

.password-btn:hover {
    background-color: #45a049;
}

.password-btn:active {
    transform: scale(0.98);
}

.password-error {
    margin-top: 10px;
    color: #d32f2f;
    font-size: 14px;
    min-height: 20px;
}

/* Blur effect on main content when password overlay is active */
#main-content.blurred {
    filter: blur(8px);
    pointer-events: none;
}

/* Shake animation for wrong password */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-8px); }
    20%, 40%, 60%, 80% { transform: translateX(8px); }
}