:root {
	--auth-primary: #12c8e8;
	--auth-primary-dark: #0098b8;
	--auth-magenta: #f000df;
	--auth-button-start: #0f172a;
	--auth-button-mid: #0f6f8f;
	--auth-button-end: #12a8c4;
	--auth-ink: #111827;
	--auth-muted: #667085;
	--auth-line: #e7edf3;
	--auth-surface: #ffffff;
	--auth-soft: #f7fbfd;
}

body.auth-page {
	background: #07111f;
	color: var(--auth-ink);
	font-family: Inter, Arial, sans-serif;
}

.auth-shell {
	position: relative;
	min-height: 100vh;
	overflow: hidden;
	background:
		linear-gradient(135deg, rgba(7, 17, 31, .96), rgba(11, 34, 52, .92), rgba(7, 17, 31, .96)),
		url("../images/pictures_vertical/bg10.jpg");
	background-position: center;
	background-size: cover;
}

.auth-shell::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 16% 12%, rgba(18, 200, 232, .22), transparent 28%),
		radial-gradient(circle at 84% 18%, rgba(240, 0, 223, .18), transparent 24%),
		linear-gradient(90deg, rgba(255, 255, 255, .055) 0 1px, transparent 1px 92px),
		linear-gradient(0deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 92px);
	mask-image: linear-gradient(180deg, rgba(0, 0, 0, .82), rgba(0, 0, 0, .22));
}

.auth-shell::after {
	content: "";
	position: absolute;
	right: -84px;
	bottom: -64px;
	width: 260px;
	height: 260px;
	border: 28px solid rgba(18, 200, 232, .2);
	border-left-color: rgba(240, 0, 223, .22);
	border-radius: 50%;
}

.print-accent {
	position: absolute;
	z-index: 1;
	border: 1px solid rgba(18, 200, 232, .22);
	border-radius: 18px;
	background: rgba(255, 255, 255, .08);
	box-shadow: 0 20px 50px rgba(0, 0, 0, .18);
	pointer-events: none;
}

.print-accent.sheet-one {
	top: 9%;
	left: 7%;
	width: 118px;
	height: 148px;
	transform: rotate(-8deg);
}

.print-accent.sheet-two {
	right: 8%;
	top: 16%;
	width: 148px;
	height: 96px;
	transform: rotate(9deg);
}

.print-accent::before,
.print-accent::after {
	content: "";
	position: absolute;
	left: 18px;
	right: 18px;
	height: 7px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .16);
}

.print-accent::before {
	top: 26px;
}

.print-accent::after {
	top: 48px;
	box-shadow: 0 22px 0 rgba(240, 0, 223, .12), 0 44px 0 rgba(18, 200, 232, .12);
}

.auth-center {
	position: relative;
	z-index: 2;
	display: flex;
	min-height: 100vh;
	align-items: center;
	justify-content: center;
	padding: 24px 14px;
}

.auth-card {
	width: min(100%, 430px);
	border: 1px solid rgba(255, 255, 255, .2);
	border-radius: 20px;
	background: rgba(255, 255, 255, .96);
	box-shadow: 0 28px 70px rgba(0, 0, 0, .38);
	overflow: hidden;
	animation: authCardIn .38s ease both;
}

.theme-dark .auth-card {
	border-color: rgba(255, 255, 255, .08);
	background: rgba(13, 20, 32, .96);
	box-shadow: 0 28px 70px rgba(0, 0, 0, .54);
}

.auth-card-header {
	padding: 26px 24px 14px;
	text-align: center;
}

.auth-logo {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 156px;
	max-width: 58vw;
	margin-bottom: 18px;
}

.auth-logo img {
	width: 100%;
	height: auto;
	object-fit: contain;
}

.auth-login-brand,
.auth-brand-split {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-bottom: 18px;
	text-decoration: none;
}

.auth-login-mark,
.auth-brand-mark {
	width: 46px;
	height: 46px;
	object-fit: contain;
	filter: drop-shadow(0 10px 18px rgba(15, 23, 42, .12));
}

.auth-login-wordmark,
.auth-brand-wordmark {
	color: #080a0d;
	font-family: Inter, Arial, sans-serif;
	font-size: 22px;
	font-weight: 900;
	letter-spacing: 0;
	line-height: 1;
	white-space: nowrap;
}

.auth-login-wordmark .brand-s,
.auth-brand-wordmark .brand-s {
	color: var(--auth-magenta);
}

.auth-login-wordmark .brand-p,
.auth-brand-wordmark .brand-p {
	color: var(--auth-primary);
}

.theme-dark .auth-login-wordmark,
.theme-dark .auth-brand-wordmark {
	color: #fff !important;
}

.theme-dark .auth-login-wordmark .brand-s,
.theme-dark .auth-brand-wordmark .brand-s {
	color: var(--auth-primary) !important;
}

.theme-dark .auth-login-wordmark .brand-p,
.theme-dark .auth-brand-wordmark .brand-p {
	color: var(--auth-magenta) !important;
}

.auth-title {
	margin: 0;
	color: var(--auth-ink);
	font-size: 23px;
	font-weight: 900;
	letter-spacing: 0;
	line-height: 1.2;
}

.theme-dark .auth-title {
	color: #fff !important;
}

.auth-subtitle {
	max-width: 320px;
	margin: 9px auto 0;
	color: var(--auth-muted);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.55;
}

.theme-dark .auth-subtitle {
	color: #a9b4c5;
}

.auth-form {
	padding: 8px 24px 24px;
}

.auth-alert {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin-bottom: 16px;
	padding: 12px 13px;
	border: 1px solid rgba(220, 38, 38, .16);
	border-radius: 14px;
	background: #fff5f5;
	color: #b42318;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.45;
}

.auth-alert.success {
	border-color: rgba(22, 163, 74, .18);
	background: #f0fdf4;
	color: #166534;
}

.auth-field {
	position: relative;
	margin-bottom: 15px;
}

.auth-field-icon {
	position: absolute;
	top: 50%;
	left: 16px;
	z-index: 2;
	width: 18px;
	color: var(--auth-primary-dark);
	font-size: 15px;
	text-align: center;
	transform: translateY(-50%);
}

.auth-input {
	width: 100%;
	height: 56px;
	padding: 19px 48px 7px 48px;
	border: 1px solid var(--auth-line);
	border-radius: 14px;
	background: #fff;
	color: var(--auth-ink);
	font-size: 14px;
	font-weight: 700;
	outline: none;
	transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.theme-dark .auth-input {
	border-color: rgba(255, 255, 255, .1);
	background: rgba(255, 255, 255, .06);
	color: #fff;
}

.theme-dark .auth-input:focus {
	border-color: rgba(18, 200, 232, .74);
	background: rgba(255, 255, 255, .08);
	box-shadow: 0 0 0 4px rgba(18, 200, 232, .14);
}

.auth-input:focus {
	border-color: var(--auth-primary);
	box-shadow: 0 0 0 4px rgba(18, 200, 232, .14);
}

.auth-label {
	position: absolute;
	top: 19px;
	left: 48px;
	z-index: 3;
	margin: 0;
	color: #758195;
	font-size: 13px;
	font-weight: 700;
	pointer-events: none;
	transform-origin: left top;
	transition: transform .16s ease, color .16s ease;
}

.theme-dark .auth-label {
	color: #95a3b8;
}

.auth-input:focus + .auth-label,
.auth-input:not(:placeholder-shown) + .auth-label {
	color: var(--auth-primary-dark);
	transform: translateY(-11px) scale(.78);
}

.auth-password-toggle {
	position: absolute;
	top: 50%;
	right: 9px;
	z-index: 4;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 12px;
	background: transparent;
	color: #667085;
	transform: translateY(-50%);
}

.theme-dark .auth-password-toggle {
	color: #a9b4c5;
}

.auth-options {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 2px 0 18px;
}

.auth-remember {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	color: #475467;
	font-size: 12px;
	font-weight: 700;
}

.theme-dark .auth-remember {
	color: #c8d3e4;
}

.auth-remember input {
	width: 18px;
	height: 18px;
	accent-color: var(--auth-primary);
}

.auth-link {
	color: var(--auth-primary-dark);
	font-size: 12px;
	font-weight: 800;
	text-decoration: none;
	white-space: nowrap;
}

.auth-link:hover,
.auth-link:focus {
	color: var(--auth-magenta);
	text-decoration: none;
}

.auth-button {
	position: relative;
	display: flex;
	width: 100%;
	height: 52px;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 14px;
	background: linear-gradient(135deg, var(--auth-button-start) 0%, var(--auth-button-mid) 52%, var(--auth-button-end) 100%);
	color: #fff !important;
	font-size: 13px;
	font-weight: 900;
	letter-spacing: 0;
	box-shadow: 0 16px 28px rgba(15, 23, 42, .2), 0 10px 22px rgba(18, 168, 196, .18);
	overflow: hidden;
	transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
	animation: authButtonGlow 2.8s ease-in-out infinite;
}

.auth-button::before {
	content: "";
	position: absolute;
	inset: -2px;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .42), transparent);
	opacity: .36;
	transform: translateX(-120%);
	animation: authButtonShine 3.2s ease-in-out infinite;
}

.auth-button:hover,
.auth-button:focus {
	color: #fff !important;
	filter: brightness(1.02);
	box-shadow: 0 18px 34px rgba(15, 23, 42, .24), 0 12px 26px rgba(18, 168, 196, .24);
}

.auth-button:active {
	transform: translateY(1px);
	box-shadow: 0 9px 18px rgba(15, 23, 42, .22), 0 7px 16px rgba(18, 168, 196, .16);
}

.auth-button.is-loading {
	pointer-events: none;
	filter: saturate(.85);
}

.auth-button.is-loading .button-text {
	opacity: .28;
}

.auth-button .button-loader {
	position: absolute;
	display: none;
	width: 20px;
	height: 20px;
	border: 2px solid rgba(255, 255, 255, .42);
	border-top-color: #fff;
	border-radius: 50%;
	animation: authSpin .8s linear infinite;
}

@keyframes authButtonGlow {
	0%, 100% {
		box-shadow: 0 16px 28px rgba(15, 23, 42, .2), 0 10px 22px rgba(18, 168, 196, .18);
	}
	50% {
		box-shadow: 0 18px 36px rgba(15, 23, 42, .26), 0 12px 30px rgba(18, 168, 196, .28);
	}
}

@keyframes authButtonShine {
	0%, 42% {
		transform: translateX(-120%);
	}
	70%, 100% {
		transform: translateX(120%);
	}
}

.auth-button.is-loading .button-loader {
	display: block;
}

.auth-footer {
	padding: 15px 24px 20px;
	border-top: 1px solid rgba(231, 237, 243, .88);
	background: linear-gradient(180deg, rgba(248, 250, 252, .58), rgba(255, 255, 255, .94));
	text-align: center;
}

.theme-dark .auth-footer {
	border-top-color: rgba(255, 255, 255, .08);
	background: linear-gradient(180deg, rgba(15, 23, 42, .68), rgba(13, 20, 32, .96));
}

.auth-footer p {
	margin: 0;
	color: #667085;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.55;
}

.theme-dark .auth-footer p {
	color: #a9b4c5;
}

.auth-footer a {
	color: var(--auth-primary-dark);
	font-weight: 800;
	text-decoration: none;
}

.auth-card-note {
	margin-top: 14px;
	padding: 12px;
	border-radius: 14px;
	background: rgba(18, 200, 232, .08);
	color: #35505c;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.5;
}

.theme-dark .auth-card-note {
	background: rgba(18, 200, 232, .1);
	color: #c8d3e4;
}

.legal-card {
	width: min(100%, 760px);
}

.legal-content {
	padding: 4px 24px 24px;
}

.legal-section {
	padding: 16px 0;
	border-top: 1px solid rgba(231, 237, 243, .9);
}

.theme-dark .legal-section {
	border-top-color: rgba(255, 255, 255, .08);
}

.legal-section:first-child {
	border-top: 0;
}

.legal-section h2 {
	margin: 0 0 8px;
	color: var(--auth-ink);
	font-size: 15px;
	font-weight: 900;
	letter-spacing: 0;
}

.theme-dark .legal-section h2 {
	color: #fff;
}

.legal-section p,
.legal-section li {
	color: #475467;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.65;
}

.theme-dark .legal-section p,
.theme-dark .legal-section li {
	color: #c8d3e4;
}

.legal-section p {
	margin: 0;
}

.legal-section ul {
	margin: 0;
	padding-left: 18px;
}

.legal-actions {
	display: flex;
	justify-content: center;
	padding: 0 24px 24px;
}

.legal-back {
	display: inline-flex;
	min-height: 44px;
	align-items: center;
	justify-content: center;
	padding: 0 18px;
	border-radius: 14px;
	background: rgba(18, 200, 232, .1);
	color: var(--auth-primary-dark);
	font-size: 12px;
	font-weight: 900;
	text-decoration: none;
}

.legal-back:hover,
.legal-back:focus {
	color: var(--auth-magenta);
	text-decoration: none;
}

.splash-shell {
	position: relative;
	min-height: 100vh;
	overflow: hidden;
	background:
		radial-gradient(circle at 50% 28%, rgba(255, 255, 255, .28), transparent 18%),
		linear-gradient(135deg, #f8fbff 0%, #eafaff 42%, #fff3fd 100%);
}

.splash-shell::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(18, 200, 232, .08) 0 1px, transparent 1px 86px),
		linear-gradient(0deg, rgba(240, 0, 223, .055) 0 1px, transparent 1px 86px);
	mask-image: radial-gradient(circle at center, rgba(0, 0, 0, .62), transparent 72%);
}

.splash-shell.is-leaving {
	animation: splashLeave .34s ease forwards;
}

.splash-center {
	position: relative;
	z-index: 2;
	display: flex;
	min-height: 100vh;
	align-items: center;
	justify-content: center;
	padding: 24px;
	animation: splashFadeIn .42s ease both;
}

.splash-panel {
	width: min(100%, 380px);
	text-align: center;
}

.splash-logo-wrap {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 152px;
	max-width: 62vw;
	padding: 12px;
	border-radius: 24px;
	background: rgba(255, 255, 255, .78);
	box-shadow: 0 22px 54px rgba(15, 23, 42, .16), 0 0 34px rgba(18, 200, 232, .18);
	animation: splashLogoIn .9s cubic-bezier(.2, .82, .2, 1) both, splashGlow 2.4s ease-in-out .9s infinite;
}

.splash-logo {
	width: 100%;
	height: auto;
	object-fit: contain;
}

.splash-company {
	margin: 22px 0 0;
	color: var(--auth-ink);
	font-size: 27px;
	font-weight: 900;
	letter-spacing: 0;
	line-height: 1.12;
	animation: splashTextUp .58s ease .52s both;
}

.splash-company .brand-s {
	color: var(--auth-magenta);
}

.splash-company .brand-p {
	color: var(--auth-primary);
}

.theme-dark .splash-company {
	color: #fff !important;
}

.theme-dark .splash-company .brand-s {
	color: var(--auth-primary) !important;
}

.theme-dark .splash-company .brand-p {
	color: var(--auth-magenta) !important;
}

.splash-tagline {
	margin: 9px auto 0;
	color: #526173;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.45;
	animation: splashTextUp .58s ease .72s both;
}

.splash-progress {
	position: relative;
	width: min(100%, 260px);
	height: 6px;
	margin: 28px auto 0;
	border-radius: 999px;
	background: rgba(15, 23, 42, .1);
	overflow: hidden;
	animation: splashTextUp .58s ease .9s both;
}

.splash-progress span {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, var(--auth-magenta), var(--auth-primary));
	box-shadow: 0 0 18px rgba(18, 200, 232, .34);
	transform-origin: left;
	animation: splashProgress 2.7s ease-in-out .25s both;
}

.splash-loading {
	margin-top: 13px;
	color: #667085;
	font-size: 12px;
	font-weight: 800;
	animation: splashTextUp .58s ease 1s both;
}

@keyframes splashFadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes splashLogoIn {
	from {
		opacity: 0;
		transform: scale(.8);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

@keyframes splashGlow {
	0%, 100% {
		box-shadow: 0 22px 54px rgba(15, 23, 42, .16), 0 0 30px rgba(18, 200, 232, .16);
	}
	50% {
		box-shadow: 0 24px 60px rgba(15, 23, 42, .18), 0 0 46px rgba(240, 0, 223, .2);
	}
}

@keyframes splashTextUp {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes splashProgress {
	from {
		transform: scaleX(0);
	}
	to {
		transform: scaleX(1);
	}
}

@keyframes splashLeave {
	to {
		opacity: 0;
		transform: scale(1.015);
	}
}

@keyframes authCardIn {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes authSpin {
	to {
		transform: rotate(360deg);
	}
}

@media (min-width: 768px) {
	.auth-center {
		padding: 34px 24px;
	}
	.auth-card {
		width: 450px;
	}
	.auth-card-header {
		padding-top: 30px;
	}
}

@media (max-width: 360px) {
	.auth-center {
		padding: 14px 10px;
	}
	.auth-card-header,
	.auth-form,
	.auth-footer,
	.legal-content,
	.legal-actions {
		padding-left: 16px;
		padding-right: 16px;
	}
	.auth-title {
		font-size: 21px;
	}
	.auth-options {
		align-items: flex-start;
		flex-direction: column;
		gap: 8px;
	}
	.splash-company {
		font-size: 23px;
	}
}
