/* Companion – Registrierung, Login, Konto. Läuft im Theme-Layout. */
.cmp-auth {
	--cmp-accent: #c4436e;
	--cmp-accent-dark: #a5335a;
	--cmp-border: #e6dfe1;
	--cmp-muted: #7a7075;
	max-width: 460px;
	margin: 0 auto;
	line-height: 1.5;
}
.cmp-auth *, .cmp-auth *::before, .cmp-auth *::after { box-sizing: border-box; }
.cmp-account { max-width: 640px; }
.cmp-auth-form { display: flex; flex-direction: column; gap: 14px; }
.cmp-auth-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.cmp-auth-form label small { font-weight: 400; color: var(--cmp-muted); }
.cmp-auth-form input[type="text"], .cmp-auth-form input[type="email"], .cmp-auth-form input[type="password"], .cmp-auth-form input[type="date"] {
	width: 100%;
	padding: 11px 13px;
	border: 1px solid var(--cmp-border);
	border-radius: 10px;
	font: inherit;
	font-weight: 400;
}
.cmp-auth-form input:focus { outline: none; border-color: var(--cmp-accent); box-shadow: 0 0 0 3px rgba(196,67,110,.15); }
.cmp-auth-check { flex-direction: row !important; align-items: flex-start; gap: 10px !important; font-weight: 400 !important; }
.cmp-auth-check input { margin-top: 4px; }
.cmp-auth-note { margin: 0; font-size: .9em; color: var(--cmp-muted); }
.cmp-auth-btn {
	display: inline-block;
	padding: 12px 20px;
	border-radius: 999px;
	border: 0;
	background: var(--cmp-accent);
	color: #fff !important;
	font: inherit;
	font-weight: 600;
	text-decoration: none !important;
	cursor: pointer;
	text-align: center;
	align-self: flex-start;
}
.cmp-auth-btn:hover { background: var(--cmp-accent-dark); }
.cmp-auth-form > .cmp-auth-btn { align-self: stretch; }
.cmp-auth-btn--ghost { background: transparent; color: var(--cmp-accent) !important; border: 1px solid var(--cmp-border); }
.cmp-auth-btn--ghost:hover { background: #fde2ea; }
.cmp-auth-btn--danger { background: #b3261e; }
.cmp-auth-btn--danger:hover { background: #8f1d17; }
.cmp-auth-link { background: none; border: 0; padding: 0; color: var(--cmp-accent); text-decoration: underline; cursor: pointer; font: inherit; }
.cmp-auth-alt { font-size: .95em; color: var(--cmp-muted); margin: 4px 0 0; }
.cmp-auth-alt a { color: var(--cmp-accent); }
.cmp-account-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; }
.cmp-account-go { display: inline-flex; flex-direction: column; padding: 12px 20px; border-radius: 12px; background: var(--cmp-accent); color: #fff; text-decoration: none; }
.cmp-account-go__k { font-size: .8em; opacity: .85; }
.cmp-account-go__t { font-weight: 600; font-size: 1.1em; }
.cmp-account-out { color: var(--cmp-muted); font-size: .95em; }
.cmp-auth-error, .cmp-auth-ok, .cmp-auth-warn { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; }
.cmp-auth-error { background: #fdecea; color: #8f1d17; }
.cmp-auth-ok { background: #e9f7ee; color: #1a5d2e; }
.cmp-auth-warn { background: #fff7e6; color: #6b5321; }
.cmp-inline-form { display: inline; }
.cmp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.cmp-account-status {
	display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center;
	padding: 16px 18px; border: 1px solid var(--cmp-border); border-radius: 12px; margin-bottom: 18px;
}
.cmp-account-status div { display: flex; flex-direction: column; }
.cmp-account-status span { font-size: .85em; color: var(--cmp-muted); }
.cmp-account-status .cmp-auth-btn { margin-left: auto; }
.cmp-account-section { border: 1px solid var(--cmp-border); border-radius: 12px; padding: 0 18px; margin-bottom: 10px; }
.cmp-account-section summary { padding: 14px 0; font-weight: 600; cursor: pointer; }
.cmp-account-section > *:not(summary) { margin-bottom: 18px; }
.cmp-account-section .cmp-auth-form p { margin: 0; color: var(--cmp-muted); font-size: .95em; }
.cmp-auth-danger { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--cmp-border); }

/* Schon angemeldet */
.cmp-auth-in{ display:flex; flex-direction:column; align-items:center; text-align:center; gap:14px; padding:28px 24px 26px; background:#fff; border:1px solid var(--cmp-border,#e6dad9); border-radius:12px; }
.cmp-auth-in__avatar{ width:56px; height:56px; border-radius:50%; background:var(--cmp-accent-soft,#fde2ea); color:var(--cmp-accent-dark,#a5335a); font-weight:700; font-size:22px; display:flex; align-items:center; justify-content:center; }
.cmp-auth-in__text strong{ display:block; font-size:18px; }
.cmp-auth-in__text span{ color:var(--cmp-muted,#7a7075); font-size:14.5px; }
.cmp-auth-in__actions{ display:flex; flex-wrap:wrap; justify-content:center; gap:10px; margin-top:4px; width:100%; }
.cmp-auth-in__actions .cmp-auth-btn{ margin:0; }
.cmp-auth-link-btn{ flex-basis:100%; font-size:13.5px; color:var(--cmp-muted,#7a7075); text-decoration:underline; margin-top:4px; }

.cmp-auth-warn--verify{ display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap; }
.cmp-auth-btn--small{ padding:9px 16px; font-size:.92em; white-space:nowrap; }
.cmp-auth-intro{ margin:0; color:var(--cmp-muted); }

.cmp-auth-pills{ display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.cmp-auth-pills__label{ flex-basis:100%; font-weight:600; }
.cmp-auth-pills__label small{ font-weight:400; color:var(--cmp-muted); }
.cmp-auth-pills label{ flex-direction:row !important; gap:0 !important; font-weight:400 !important; }
.cmp-auth-pills input{ position:absolute; opacity:0; width:0; height:0; }
.cmp-auth-pills label span{ display:inline-block; padding:8px 14px; border-radius:999px; border:1px solid var(--cmp-border); cursor:pointer; }
.cmp-auth-pills input:checked + span{ background:var(--cmp-accent); border-color:var(--cmp-accent); color:#fff; }
.cmp-account-avatar { display: flex; gap: 16px; align-items: center; }
.cmp-account-avatar__pic { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; background: var(--cmp-accent-soft); color: var(--cmp-accent-dark); font-weight: 700; font-size: 28px; }
.cmp-account-avatar__pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cmp-account-avatar__body { display: flex; flex-direction: column; gap: 8px; flex: 1 1 auto; min-width: 0; }
.cmp-file { position: relative; display: inline-flex; align-items: center; gap: 10px; font-weight: 400; }
.cmp-file input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.cmp-file__btn { display: inline-flex; align-items: center; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--cmp-accent); color: var(--cmp-accent); font-weight: 600; background: #fff; }
.cmp-file__name { color: var(--cmp-muted); font-size: .95em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
