.sl-auth-overlay {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(6, 2, 16, 0.78);
	overflow-y: auto;
}

.sl-auth-overlay[hidden] {
	display: none;
}

.sl-auth-modal {
	width: 100%;
	max-width: 380px;
	margin: auto;
	padding: 24px;
	border: 1px solid rgba(168, 85, 247, 0.25);
	border-radius: 18px;
	background: #1a0836;
	color: #efe9ff;
	box-sizing: border-box;
}

.sl-auth-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 18px;
}

.sl-auth-title {
	margin: 0;
	font-size: 20px;
	line-height: 1.25;
	font-weight: 600;
	color: #ffffff;
}

.sl-auth-close {
	flex: 0 0 auto;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.06);
	color: #cfc3ec;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.sl-auth-close:hover {
	background: rgba(255, 255, 255, 0.12);
	color: #ffffff;
}

.sl-auth-error {
	margin-bottom: 14px;
	padding: 10px 12px;
	border: 1px solid rgba(244, 63, 94, 0.4);
	border-radius: 10px;
	background: rgba(244, 63, 94, 0.12);
	color: #ffc7d1;
	font-size: 13px;
	line-height: 1.45;
}

.sl-auth-error[hidden] {
	display: none;
}

.sl-auth-view[hidden] {
	display: none;
}

.sl-auth-tabs {
	display: flex;
	gap: 4px;
	margin-bottom: 16px;
	padding: 4px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.05);
}

.sl-auth-tab {
	flex: 1 1 50%;
	padding: 9px 8px;
	border: 0;
	border-radius: 9px;
	background: transparent;
	color: #bcaee0;
	font: inherit;
	font-size: 14px;
	cursor: pointer;
}

.sl-auth-tab.is-active {
	background: rgba(255, 255, 255, 0.1);
	color: #ffffff;
}

.sl-auth-label {
	display: block;
	margin-bottom: 6px;
	color: #b7a8dc;
	font-size: 13px;
}

.sl-auth-input {
	width: 100%;
	margin-bottom: 14px;
	padding: 11px 13px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 11px;
	background: rgba(255, 255, 255, 0.04);
	color: #ffffff;
	font: inherit;
	font-size: 15px;
	box-sizing: border-box;
}

.sl-auth-input:focus {
	outline: none;
	border-color: #a855f7;
	box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.25);
}

.sl-auth-input::placeholder {
	color: #7c6ca0;
}

.sl-auth-pass {
	position: relative;
}

.sl-auth-pass .sl-auth-input {
	padding-right: 46px;
}

.sl-auth-eye {
	position: absolute;
	top: 0;
	right: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 45px;
	padding: 0;
	border: 0;
	background: none;
	color: #9c8cc4;
	cursor: pointer;
}

.sl-auth-eye:hover {
	color: #e9d5ff;
}

.sl-auth-eye svg {
	width: 20px;
	height: 20px;
	display: block;
}

.sl-auth-row-right {
	margin: -6px 0 16px;
	text-align: right;
}

.sl-auth-submit {
	display: block;
	width: 100%;
	padding: 13px 16px;
	border: 0;
	border-radius: 12px;
	background: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
	color: #ffffff;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
}

.sl-auth-submit:hover {
	filter: brightness(1.08);
}

.sl-auth-submit:disabled {
	opacity: 0.6;
	cursor: default;
}

.sl-auth-alt {
	display: block;
	width: 100%;
	margin-top: 12px;
	padding: 11px 16px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 12px;
	background: transparent;
	color: #d6c9f5;
	font: inherit;
	font-size: 14px;
	cursor: pointer;
}

.sl-auth-alt:hover {
	border-color: rgba(168, 85, 247, 0.6);
	color: #ffffff;
}

.sl-auth-link {
	padding: 0;
	border: 0;
	background: none;
	color: #c084fc;
	font: inherit;
	font-size: 13px;
	text-decoration: none;
	cursor: pointer;
}

.sl-auth-link:hover {
	color: #e9d5ff;
	text-decoration: underline;
}

.sl-auth-foot {
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px solid rgba(255, 255, 255, 0.09);
	color: #a294c8;
	font-size: 13px;
	text-align: center;
}

.sl-auth-note {
	margin: 0 0 16px;
	color: #b7a8dc;
	font-size: 14px;
	line-height: 1.5;
}

.sl-auth-note--muted {
	margin: 12px 0 0;
	color: #8d7fb5;
	font-size: 13px;
	text-align: center;
}

.sl-auth-note span {
	color: #ffffff;
}

.sl-auth-code {
	display: flex;
	gap: 8px;
	margin-bottom: 16px;
}

.sl-auth-code input {
	width: 100%;
	padding: 12px 0;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 11px;
	background: rgba(255, 255, 255, 0.04);
	color: #ffffff;
	font: inherit;
	font-size: 20px;
	text-align: center;
	box-sizing: border-box;
}

.sl-auth-code input:focus {
	outline: none;
	border-color: #a855f7;
	box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.25);
}

.sl-auth-hint-text {
	margin: -8px 0 14px;
	color: #8d7fb5;
	font-size: 12px;
	line-height: 1.5;
}

.sl-auth-hint-text--legal {
	margin: 14px 0 0;
}

.sl-auth-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.sl-auth-open {
	cursor: pointer;
}

body.sl-auth-locked {
	overflow: hidden;
}

@media (max-width: 420px) {
	.sl-auth-modal {
		padding: 20px 16px;
	}

	.sl-auth-code {
		gap: 6px;
	}

	.sl-auth-code input {
		font-size: 18px;
	}
}

.sl-auth-modal--narrow {
	max-width: 340px;
}

.sl-auth-rules {
	margin: -6px 0 14px;
	padding: 0;
	list-style: none;
}

.sl-auth-rules li {
	display: flex;
	align-items: center;
	gap: 7px;
	margin: 0 0 4px;
	color: #8d7fb5;
	font-size: 12px;
	line-height: 1.4;
}

.sl-auth-rules li::before {
	content: "";
	flex: 0 0 auto;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #5b4c80;
}

.sl-auth-rules li.is-ok {
	color: #7ee0b0;
}

.sl-auth-rules li.is-ok::before {
	background: #34d399;
}

.sl-auth-toast {
	position: fixed;
	left: 50%;
	bottom: 24px;
	z-index: 100000;
	max-width: 90vw;
	padding: 12px 18px;
	transform: translateX(-50%);
	border: 1px solid rgba(168, 85, 247, 0.3);
	border-radius: 12px;
	background: #1a0836;
	color: #efe9ff;
	font-size: 14px;
}

.sl-auth-toast[hidden] {
	display: none;
}

.sl-auth-consent {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	margin: 4px 0 16px;
	color: #a294c8;
	font-size: 12px;
	line-height: 1.5;
	cursor: pointer;
}

.sl-auth-consent input {
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	margin: 1px 0 0;
	accent-color: #a855f7;
	cursor: pointer;
}
