/* SK Core Design Login - Nova hell
   Akzentfarben kommen per Inline-Style (--cdl-accent / --cdl-accent-2) vom Modul. */

.mod-cd-login {
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Rahmenlinien oben/unten */
.mod-cd-login .cdl-border {
	clear: both;
	border-top: 1px dotted #9a9a9a;
	margin: 6px 0;
}

/* Ausrichtung des Anmelde-Buttons */
.mod-cd-login .cdl-open-wrap { display: flex; }
.mod-cd-login .cdl-align-left   { justify-content: flex-start; }
.mod-cd-login .cdl-align-center { justify-content: center; }
.mod-cd-login .cdl-align-right  { justify-content: flex-end; }

/* Öffnen-Button (Gast) */
.mod-cd-login .cdl-open {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	padding: .55rem 1rem;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(135deg, #B1976B, #d8c3a1);
	color: #fff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(177, 151, 107, .45);
	transition: box-shadow .2s ease, transform .2s ease;
}
.mod-cd-login .cdl-open:hover,
.mod-cd-login .cdl-open:focus-visible {
	box-shadow: 0 6px 20px rgba(177, 151, 107, .65);
	transform: translateY(-1px);
}
.mod-cd-login .cdl-open svg,
.mod-cd-login .cdl-button svg {
	width: 1.15em;
	height: 1.15em;
	fill: currentColor;
	flex: none;
}

/* Begrüßung + Logout-Icon (angemeldet) */
.mod-cd-login .cdl-greeting {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .75rem;
}
.mod-cd-login .cdl-icon-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border: 1px solid rgba(177, 151, 107, .5);
	border-radius: 50%;
	background: #fff;
	color: #B1976B;
	cursor: pointer;
	transition: box-shadow .2s ease;
}
.mod-cd-login .cdl-icon-button:hover,
.mod-cd-login .cdl-icon-button:focus-visible {
	box-shadow: 0 0 0 4px rgba(177, 151, 107, .25);
}
.mod-cd-login .cdl-icon-button svg {
	width: 1.1rem;
	height: 1.1rem;
	fill: currentColor;
}

/* ---------- Dialog ---------- */
.cdl-dialog {
	--cdl-accent: #B1976B;
	--cdl-accent-2: #d8c3a1;
	--cdl-dim: .4;
	--cdl-bg: #fff;
	--cdl-fg: #2b2b2b;
	--cdl-muted: #6b6b6b;
	--cdl-input-bg: #fff;
	--cdl-input-fg: #2b2b2b;
	--cdl-radius: 18px;

	box-sizing: border-box;
	width: min(92vw, 360px);
	max-height: 90vh;
	padding: 0;
	border: 1.5px solid transparent;
	border-radius: var(--cdl-radius);
	background:
		linear-gradient(var(--cdl-bg), var(--cdl-bg)) padding-box,
		linear-gradient(135deg, var(--cdl-accent), var(--cdl-accent-2)) border-box;
	color: var(--cdl-fg);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 14px;
	line-height: 1.5;
	overflow: auto;
	box-shadow: 0 18px 50px color-mix(in srgb, var(--cdl-accent) 38%, transparent), 0 4px 12px rgba(0, 0, 0, .08);
}
.cdl-dialog::backdrop {
	background: rgba(0, 0, 0, var(--cdl-dim));
}
.cdl-dialog[open] {
	animation: cdl-pop .18s ease-out;
}
@keyframes cdl-pop {
	from { opacity: 0; transform: translateY(8px) scale(.98); }
	to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
	.cdl-dialog[open] { animation: none; }
}

.cdl-dialog__inner {
	padding: 1rem 1.25rem 1.25rem;
}
.cdl-dialog__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: .75rem;
}
.cdl-dialog__title {
	margin: 0;
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--cdl-fg);
}
.cdl-close {
	border: 0;
	background: transparent;
	color: var(--cdl-muted);
	font-size: 1.6rem;
	line-height: 1;
	cursor: pointer;
	padding: 0 .25rem;
}
.cdl-close:hover,
.cdl-close:focus-visible {
	color: var(--cdl-accent);
}

/* Formular */
.cdl-form {
	display: flex;
	flex-direction: column;
	gap: .8rem;
	margin: 0;
}
.cdl-field label {
	display: block;
	margin-bottom: .25rem;
	font-weight: 600;
	color: var(--cdl-muted);
	font-size: 13px;
}
.cdl-input {
	position: relative;
	display: block;
}
.cdl-input svg {
	position: absolute;
	left: .7rem;
	top: 50%;
	width: 1.05rem;
	height: 1.05rem;
	transform: translateY(-50%);
	fill: var(--cdl-accent);
	pointer-events: none;
}
.cdl-input input {
	box-sizing: border-box;
	width: 100%;
	padding: .6rem .8rem .6rem 2.4rem;
	border: 1px solid #d9d4ca;
	border-radius: 12px;
	background: var(--cdl-input-bg);
	color: var(--cdl-input-fg);
	font: inherit;
	height: auto;
}
.cdl-input input:focus {
	outline: none;
	border-color: var(--cdl-accent);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--cdl-accent) 25%, transparent);
}
.cdl-remember {
	display: flex;
	align-items: center;
	gap: .5rem;
	color: var(--cdl-muted);
	cursor: pointer;
}
.cdl-remember input {
	accent-color: var(--cdl-accent);
}

/* Buttons */
.cdl-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	width: 100%;
	padding: .7rem 1rem;
	border: 0;
	border-radius: 12px;
	background: linear-gradient(135deg, var(--cdl-accent), var(--cdl-accent-2));
	color: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 4px 14px color-mix(in srgb, var(--cdl-accent) 45%, transparent);
	transition: box-shadow .2s ease, transform .2s ease;
}
.cdl-button:hover,
.cdl-button:focus-visible {
	box-shadow: 0 6px 22px color-mix(in srgb, var(--cdl-accent) 65%, transparent);
	transform: translateY(-1px);
}
.cdl-button--secondary {
	background: var(--cdl-bg);
	color: var(--cdl-fg);
	border: 1px solid color-mix(in srgb, var(--cdl-accent) 55%, transparent);
	box-shadow: none;
}
.cdl-button--secondary svg,
.cdl-button--secondary .icon {
	fill: var(--cdl-accent);
}

/* Links */
.cdl-links {
	list-style: none;
	margin: .25rem 0 0;
	padding: 0;
	font-size: 13px;
}
.cdl-links li {
	margin: .2rem 0;
	padding: 0;
}
.cdl-links a {
	color: var(--cdl-muted);
	text-decoration: none;
	border-bottom: 1px dotted var(--cdl-accent);
}
.cdl-links a:hover,
.cdl-links a:focus-visible {
	color: var(--cdl-accent);
}

/* Hinweise */
.cdl-confirm {
	margin: 0;
	text-align: center;
	font-weight: 600;
}
.cdl-form--logout {
	align-items: stretch;
}
.cdl-message {
	margin-top: .9rem;
	padding: .6rem .9rem;
	border-radius: 12px;
	background: #fbf7ef;
	border: 1px solid #ecdfc7;
	color: #7a6540;
	text-align: center;
}

/* ---------- Outline-Varianten (Ersatz für Highslide-Outlines) ---------- */
.cdl-outline-rounded-white {
	--cdl-radius: 12px;
	border-color: #e5e5e5;
	background: #fff;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
}
.cdl-outline-rounded-black {
	--cdl-bg: #1e1e1e;
	--cdl-fg: #f1f1f1;
	--cdl-muted: #bdbdbd;
	--cdl-radius: 12px;
	border-color: #000;
	background: #1e1e1e;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .45);
}
.cdl-outline-glossy-dark {
	--cdl-bg: #262a30;
	--cdl-fg: #f1f1f1;
	--cdl-muted: #c4c8cf;
	--cdl-radius: 10px;
	border-color: #0d0f12;
	background: linear-gradient(180deg, #3a4048 0%, #262a30 45%, #1c1f24 100%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 10px 28px rgba(0, 0, 0, .5);
}
.cdl-outline-beveled {
	--cdl-radius: 4px;
	border: 6px solid #d4d0c8;
	border-style: outset;
	background: #fff;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}
.cdl-outline-drop-shadow {
	--cdl-radius: 6px;
	border-color: #e0e0e0;
	background: #fff;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .55);
}
.cdl-outline-outer-glow {
	--cdl-radius: 14px;
	border-color: #fff;
	background: #fff;
	box-shadow: 0 0 40px 10px rgba(255, 255, 255, .85), 0 0 0 1px rgba(0, 0, 0, .1);
}
.cdl-outline-rounded-black .cdl-input input,
.cdl-outline-glossy-dark .cdl-input input {
	border-color: #555;
	background: #2d2d2d;
	color: #f1f1f1;
}
