* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body { background: #dfe3e6; color: #1d2733; font-family: Arial, Helvetica, sans-serif; font-size: 14px; }
.account-shell { width: calc(100% - 40px); max-width: 920px; min-height: calc(100vh - 40px); margin: 20px auto; background: #f3f3f3; border: 1px solid #c9c9c9; border-radius: 6px; box-shadow: 0 3px 15px rgba(0,0,0,.15); overflow: hidden; }
.account-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 24px; background: #26323d; color: #fff; }
.account-header h1 { margin: 0; font-size: 19px; }
.account-back { color: #d9e0e6; text-decoration: none; }
.account-back:hover { color: #fff; }
.account-back i { margin-right: 7px; }
.account-content { padding: 28px; }
.account-panel { background: #fff; border: 1px solid #d6d6d6; border-radius: 4px; overflow: hidden; }
.account-panel-body { padding: 22px; }
.account-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 30px; align-items: center; min-height: 76px; padding: 16px 18px; border-bottom: 1px solid #e1e1e1; }
.account-row:last-child { border-bottom: 0; }
.account-row label { font-weight: 600; }
.account-row input[type=text], .account-row input[type=password], .account-row input[type=email], .account-row select { width: 100%; min-height: 38px; padding: 7px 10px; border: 1px solid #c9c9c9; border-radius: 4px; font: inherit; }
.account-checkbox { display: flex; align-items: center; gap: 8px; }
.account-actions { padding: 20px 0 0; text-align: center; }
.account-actions button, .account-button { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 8px 18px; background: #416f9f; border: 1px solid #365f89; border-radius: 4px; color: #fff; cursor: pointer; font: inherit; text-decoration: none; }
.account-actions button:disabled { background: #a7a7a7; border-color: #929292; color: #ededed; cursor: not-allowed; opacity: 1; }
.account-actions button:disabled:hover { background: #a7a7a7; border-color: #929292; }
.account-message { margin-bottom: 20px; padding: 12px 16px; border-radius: 4px; }
.account-error, .registration-error { margin: 0 0 20px; padding: 14px 16px; background: #fbeaea; border: 1px solid #e2bcbc; border-radius: 4px; line-height: 1.5; }
.account-success, .registration-success { margin: 0 0 20px; padding: 14px 16px; background: #edf7ed; border: 1px solid #bdd8bd; border-radius: 4px; line-height: 1.5; }
.account-error p, .registration-error p, .account-success p, .registration-success p { margin: 0; }
.account-error p + p, .registration-error p + p, .account-success p + p, .registration-success p + p { margin-top: 8px; }
.registration-legal-texts { display: grid; gap: 18px; }
.registration-legal-texts section, .storage-consent, .captcha-box { margin-top: 18px; padding: 18px; background: #fff; border: 1px solid #d6d6d6; border-radius: 4px; }
.legal-page-content {
	max-height: 300px;
	overflow: auto;
	border: 1px solid;
	border-radius: 4px;
	padding: 8px;
}
.legal-choice-actions { display: flex; gap: 12px; justify-content: center; margin-top: 20px; }
.legal-choice-actions button { min-height: 38px; padding: 8px 18px; border: 1px solid #365f89; border-radius: 4px; background: #416f9f; color: #fff; cursor: pointer; }
.storage-consent-check { display: flex; gap: 8px; align-items: flex-start; }
.captcha-sortable { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.captcha-column-title { margin-bottom: 8px; font-weight: 600; }
.captcha-dropzone { min-height: 80px; padding: 8px; border: 1px dashed #aeb6bf; border-radius: 4px; }
.captcha-item { display: flex; justify-content: space-between; gap: 10px; margin: 5px 0; padding: 8px 10px; background: #eef3f7; border: 1px solid #cbd5de; border-radius: 4px; cursor: move; }
@media (max-width: 760px) { .account-shell { width: auto; min-height: 0; margin: 15px; } .account-header { align-items: flex-start; flex-direction: column; } .account-content { padding: 20px; } .account-row { display: block; } .account-row > :last-child { margin-top: 10px; } .captcha-sortable { grid-template-columns: 1fr; } }
.account-secondary { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 0 20px 20px; text-align: center; }
.account-secondary a:not(.account-button) { color: #416f9f; text-decoration: none; }
.account-secondary a:not(.account-button):hover { text-decoration: underline; }
.account-panel form > .account-actions { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 16px; padding: 20px; border-top: 1px solid #e1e1e1; }
.recaptcha-consent-notice { margin-bottom: 16px; padding: 14px 16px; background: #fff4d6; border: 1px solid #e1c678; border-radius: 4px; }
.recaptcha-consent-notice strong { display: block; margin-bottom: 6px; }
.recaptcha-consent-notice p { margin: 0 0 12px; }
.recaptcha-consent-notice.is-hidden { display: none; }
.recaptcha-consent-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.recaptcha-consent-actions span { font-weight: 600; }
.recaptcha-consent-actions a { color: #416f9f; text-decoration: underline; cursor: pointer; }
.recaptcha-consent-actions a:hover { text-decoration: none; }

/*
 * Die Anmeldeseite bleibt kompakt und wird wie die übrigen
 * Systemseiten mittig innerhalb des verfügbaren Browserfensters dargestellt.
 */
body:has(.account-shell-login) {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	padding: 20px;
}

.account-shell-login {
	width: 100%;
	min-height: 0;
	margin: 0;
}

@media (max-width: 760px) {
	body:has(.account-shell-login) {
		align-items: flex-start;
		padding: 15px;
	}

	.account-shell-login {
		width: 100%;
		margin: 0;
	}
}
