/*
 * rswork Frontend-Login-Overlay (Berater-Cockpit).
 * Vollbild-Overlay fuer geschuetzte Seiten — Login -> 2FA -> optional Erst-Setup.
 * Plugin-natives Design (Variante A), durchgehender Praefix rsw-.
 */

#rsw-access-overlay {
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: #f9fafb;
	font-family: Helvetica, Arial, sans-serif;
	color: #1a2332;
	display: none;
	overflow-y: auto;
}

#rsw-access-overlay.rsw-show {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 48px 16px;
}

#rsw-access-overlay *,
#rsw-access-overlay *::before,
#rsw-access-overlay *::after {
	box-sizing: border-box;
	font-family: Helvetica, Arial, sans-serif;
}

.rsw-card {
	width: 100%;
	max-width: 440px;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 32px 28px;
	margin-top: 48px;
	box-shadow: 0 4px 24px rgb(15 23 42 / 6%);
}

.rsw-brand {
	text-align: center;
	margin-bottom: 24px;
}

.rsw-brand-mark {
	display: inline-block;
	font-weight: 700;
	font-size: 22px;
	letter-spacing: .5px;
	color: #0b1e3f;
	border-bottom: 2px solid #c9a24a;
	padding-bottom: 4px;
}

.rsw-brand h2 {
	font-size: 18px;
	font-weight: 600;
	margin: 18px 0 4px;
	color: #0b1e3f;
}

.rsw-brand p {
	font-size: 13px;
	color: #64748b;
	margin: 0;
}

.rsw-step {
	display: none;
}

.rsw-step.rsw-active {
	display: block;
}

.rsw-field {
	margin-bottom: 14px;
}

.rsw-field label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #0b1e3f;
	margin-bottom: 6px;
}

.rsw-field input[type="email"],
.rsw-field input[type="password"],
.rsw-field input[type="text"] {
	width: 100%;
	padding: 10px 12px;
	font-size: 14px;

	/* height:auto schlaegt eine fixe Theme-Hoehe — sonst wird der Text
	   bei diesem Padding vertikal beschnitten. */
	height: auto;
	line-height: 1.4;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	background: #fff;
	color: #1a2332;
	transition: border-color .15s ease;
}

.rsw-field input:focus {
	outline: none;
	border-color: #046bd2;
	box-shadow: 0 0 0 3px rgb(4 107 210 / 12%);
}

.rsw-otp-input {
	letter-spacing: 8px;
	text-align: center;
	font-size: 20px !important;
	font-weight: 600;
	font-family: "Courier New", monospace !important;
}

.rsw-btn {
	width: 100%;
	padding: 11px 16px;
	font-size: 14px;
	font-weight: 600;
	background: #046bd2;
	color: #fff;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	transition: background .15s ease;
}

.rsw-btn:hover {
	background: #035caa;
}

.rsw-btn:disabled {
	background: #94a3b8;
	cursor: not-allowed;
}

.rsw-btn-link {
	width: 100%;
	padding: 10px 0;
	background: none;
	border: none;
	color: #046bd2;
	font-size: 13px;
	cursor: pointer;
	text-decoration: underline;
}

.rsw-error {
	background: #fee2e2;
	color: #991b1b;
	border: 1px solid #fca5a5;
	padding: 10px 12px;
	border-radius: 6px;
	font-size: 13px;
	margin-bottom: 14px;
	display: none;
}

.rsw-error.rsw-show {
	display: block;
}

/* Positive/neutrale Variante derselben Box (z. B. "Reset-Mail versendet"). */
.rsw-error.rsw-ok {
	background: #e7f7ed;
	color: #1f7a44;
	border-color: #b6e6c8;
}

.rsw-info {
	background: #eff6ff;
	color: #0b4083;
	border: 1px solid #bfdbfe;
	padding: 10px 12px;
	border-radius: 6px;
	font-size: 13px;
	margin-bottom: 14px;
}

.rsw-qr {
	text-align: center;
	margin: 16px 0;
}

.rsw-qr svg {
	max-width: 200px;
	height: auto;
	border: 1px solid #e5e7eb;
	padding: 8px;
	background: #fff;
	border-radius: 6px;
}

.rsw-secret {
	font-family: "Courier New", monospace;
	font-size: 13px;
	background: #f9fafb;
	border: 1px dashed #c9a24a;
	padding: 10px;
	border-radius: 6px;
	margin: 12px 0;
	word-break: break-all;
	text-align: center;
}

.rsw-recovery {
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	padding: 14px;
	border-radius: 6px;
	margin: 14px 0;
}

.rsw-recovery h4 {
	margin: 0 0 8px;
	font-size: 13px;
	color: #0b1e3f;
	font-weight: 600;
}

.rsw-recovery ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 6px 14px;
}

.rsw-recovery li {
	font-family: "Courier New", monospace;
	font-size: 13px;
	color: #1a2332;
	padding: 4px 6px;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 4px;
}

.rsw-recovery-warn {
	font-size: 12px;
	color: #991b1b;
	margin-top: 10px;
}

.rsw-foot {
	text-align: center;
	font-size: 11px;
	color: #94a3b8;
	margin-top: 18px;
}

.rsw-foot a {
	color: #94a3b8;
}

/* Sekundaerer Login-Weg: Passkey / Windows Hello (hebt sich vom primaeren „Anmelden" ab). */
.rsw-btn-passkey {
	margin-top: 10px;
	background: #fff;
	color: #046bd2;
	border: 1px solid #046bd2;
}

.rsw-btn-passkey:hover {
	background: #eff6ff;
}
