.eventadmin-form-wrapper {
    max-width: 400px;
    margin: 2rem auto;
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    font-family: sans-serif;
}

.eventadmin-form label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: bold;
}

.eventadmin-form input {
    width: 100%;
    padding: 0.6rem !important;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.eventadmin-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal;
    margin-bottom: 0.8rem;
    cursor: pointer;
}

.eventadmin-checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.eventadmin-departments-toggle {
    margin: -0.3rem 0 1rem;
    padding: 0.6rem 0.8rem;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.eventadmin-departments-toggle summary {
    cursor: pointer;
    font-weight: bold;
    color: #0073aa;
}

.eventadmin-departments-toggle summary:hover {
    color: #005d88;
}

.eventadmin-departments-toggle p {
    margin: 0.8rem 0 0.5rem;
    font-weight: normal;
}

.eventadmin-departments-toggle .eventadmin-checkbox-label {
    margin-left: 0.3rem;
}

.eventadmin-form button, .eventadmin-form input[type="submit"] {
    width: 100%;
    background-color: #0073aa;
    color: white;
    padding: 0.7rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
}

.eventadmin-form button:hover, .eventadmin-form input[type="submit"]:hover {
    background-color: #005d88;
}

.eventadmin-success {
    margin-top: 1rem;
    padding: 1rem;
    background: #dff0d8;
    color: #3c763d;
    border: 1px solid #d6e9c6;
    border-radius: 4px;
}

.hinweis-box-warning {
    background: #fff3cd;
    border: 1px solid #ffeeba;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
}

.hinweis-box-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
    color: #155724;
}

/* Neutral / error notices (the registration page's info messages had no style before) */
.eventadmin-info,
.eventadmin-error {
    margin-bottom: 1rem;
    padding: 0.8rem 1rem;
    border-radius: 4px;
}

.eventadmin-info {
    background: #e8f4fa;
    border: 1px solid #b6dcef;
    color: #1d4f6b;
}

.eventadmin-error {
    background: #fbeaea;
    border: 1px solid #f1c3c3;
    color: #8a1f1f;
}

/* "I'm new" / "I already have an account" switch on the volunteer page */
/* Both views are in the page; themes that style divs as display:block must not show the hidden one */
.eventadmin-form-wrapper .eventadmin-view[hidden] {
    display: none !important;
}

.eventadmin-view-tabs {
    display: flex;
    margin-bottom: 1.2rem;
    border-bottom: 1px solid #ddd;
}

.eventadmin-view-tabs a {
    flex: 1;
    padding: 0.6rem 0.4rem;
    text-align: center;
    text-decoration: none;
    color: #555;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
}

.eventadmin-view-tabs a.is-active {
    color: #0073aa;
    font-weight: bold;
    border-bottom-color: #0073aa;
}

/* Secondary action that looks like a link (e.g. "Email me a login link", "No thanks"),
   overriding the full-width blue .eventadmin-form button style */
.eventadmin-form button.eventadmin-link-button,
.eventadmin-form button.eventadmin-link-button:hover {
    width: auto;
    padding: 0;
    background: none;
    color: #0073aa;
    text-decoration: underline;
    font-size: inherit;
}

.eventadmin-form button.eventadmin-link-button:hover {
    color: #005d88;
}

.eventadmin-login-alt {
    margin: 1rem 0 0;
    text-align: center;
    font-size: 0.9rem;
}

.eventadmin-field-hint {
    margin: -0.6rem 0 1rem;
    font-size: 0.85rem;
    color: #666;
}

/* "Log in with a password next time?" banner above the cockpit */
.eventadmin-password-prompt {
    margin-bottom: 1.5rem;
    padding: 1rem 1.2rem;
    background: #e8f4fa;
    border: 1px solid #b6dcef;
    border-radius: 6px;
}

.eventadmin-password-prompt p {
    margin-top: 0;
}

.eventadmin-password-prompt .eventadmin-form button.eventadmin-link-button {
    display: block;
    margin: 0.8rem auto 0;
}
