/* Auth modal Animeav1 */

body.av1-theme .login_box {
	display: none !important;
}

.av1-auth {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.28s ease, visibility 0.28s ease;
}

.av1-auth.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.av1-auth-overlay {
	position: absolute;
	inset: 0;
	background: rgba(8, 8, 12, 0.72);
	backdrop-filter: blur(4px);
}

.av1-auth-dialog {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 420px;
	background: #191922;
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 16px;
	padding: 28px 28px 24px;
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
	transform: translateY(48px);
	opacity: 0;
	transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}

.av1-auth.is-open .av1-auth-dialog {
	transform: translateY(0);
	opacity: 1;
}

.av1-auth-close {
	position: absolute;
	top: 18px;
	right: 18px;
	width: 32px;
	height: 32px;
	border: 0;
	background: transparent;
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border-radius: 8px;
}

.av1-auth-close:hover {
	background: rgba(255, 255, 255, 0.06);
}

.av1-auth-close svg {
	width: 18px;
	height: 18px;
}

.av1-auth-panel {
	display: none;
}

.av1-auth-panel.is-active {
	display: block;
}

.av1-auth-title {
	margin: 0 36px 22px 0;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.2;
	color: #fff;
	font-family: "Satoshi", sans-serif;
}

.av1-auth-label {
	display: block;
	margin: 0 0 8px;
	font-size: 13px;
	font-weight: 500;
	color: #fff;
	font-family: "Satoshi", sans-serif;
}

.av1-auth-input {
	width: 100% !important;
	height: 44px !important;
	margin: 0 0 16px !important;
	padding: 0 14px !important;
	border: 1px solid rgba(255, 255, 255, 0.04) !important;
	border-radius: 8px !important;
	background: #242533 !important;
	color: #c9ced9 !important;
	font-size: 14px !important;
	box-shadow: none !important;
	outline: none !important;
	box-sizing: border-box;
	-webkit-text-fill-color: #c9ced9;
	caret-color: #fff;
}

.av1-auth-input::placeholder {
	color: #6b7385;
	opacity: 1;
}

.av1-auth-input:focus {
	border-color: rgba(60, 236, 214, 0.35) !important;
	background: #242533 !important;
}

.av1-auth-input:-webkit-autofill,
.av1-auth-input:-webkit-autofill:hover,
.av1-auth-input:-webkit-autofill:focus,
.av1-auth-input:-webkit-autofill:active {
	-webkit-box-shadow: 0 0 0 1000px #242533 inset !important;
	box-shadow: 0 0 0 1000px #242533 inset !important;
	-webkit-text-fill-color: #c9ced9 !important;
	caret-color: #fff;
	transition: background-color 9999s ease-in-out 0s;
}

.av1-auth-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 18px;
}

.av1-auth-check {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #fff;
	font-size: 13px;
	cursor: pointer;
	user-select: none;
}

.av1-auth-check input {
	appearance: none;
	-webkit-appearance: none;
	width: 18px;
	height: 18px;
	margin: 0;
	border-radius: 4px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	background: #212433;
	position: relative;
	cursor: pointer;
	flex: 0 0 18px;
}

.av1-auth-check input:checked {
	background: #3cecd6;
	border-color: #3cecd6;
}

.av1-auth-check input:checked::after {
	content: "";
	position: absolute;
	left: 5px;
	top: 2px;
	width: 5px;
	height: 9px;
	border: solid #111;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.av1-auth-link {
	border: 0;
	background: transparent;
	color: #fff;
	font-size: 13px;
	font-family: "Satoshi", sans-serif;
	font-weight: 500;
	cursor: pointer;
	padding: 0;
	text-decoration: none;
}

.av1-auth-link.accent,
.av1-auth-switch .av1-auth-link {
	color: #3cecd6;
}

.av1-auth-link:hover {
	opacity: 0.85;
}

.av1-auth-submit {
	width: 100%;
	height: 46px;
	border: 0;
	border-radius: 10px;
	background: #3cecd6 !important;
	color: #111 !important;
	font-size: 15px;
	font-weight: 700;
	font-family: "Satoshi", sans-serif;
	cursor: pointer;
	margin: 0 0 16px;
	transition: filter 0.2s ease, transform 0.15s ease;
}

.av1-auth-submit:hover {
	filter: brightness(1.05);
}

.av1-auth-submit:disabled {
	opacity: 0.7;
	cursor: wait;
}

.av1-auth-switch {
	margin: 0;
	text-align: center;
	color: #fff;
	font-size: 13px;
	font-family: "Satoshi", sans-serif;
}

.av1-auth-msg {
	min-height: 0;
	margin-top: 12px;
	font-size: 13px;
	line-height: 1.4;
	text-align: center;
}

.av1-auth-msg .is-error {
	color: #ff7b7b;
}

.av1-auth-msg .is-success {
	color: #3cecd6;
}

body.av1-auth-open {
	overflow: hidden;
}

@media (max-width: 520px) {
	.av1-auth {
		align-items: flex-end;
		padding: 0;
	}

	.av1-auth-dialog {
		max-width: 100%;
		border-radius: 16px 16px 0 0;
		padding: 24px 20px 28px;
		transform: translateY(100%);
	}

	.av1-auth.is-open .av1-auth-dialog {
		transform: translateY(0);
	}
}
