:root {
	--scaly-auth-bg: #3d3d3d;
	--scaly-auth-accent: #e5aa7e;
	--scaly-auth-white: #ffffff;
	--scaly-auth-muted: #8b8b8b;
}

html,
body {
	min-height: 100%;
}

body {
	margin: 0;
	background: #2f2f2f;
	font-family: Roboto, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.auth-page {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: #2f2f2f;
}

.auth-shell {
	width: min(1180px, 100%);
	min-height: min(760px, calc(100vh - 48px));
	display: grid;
	grid-template-columns: minmax(0, 58%) minmax(360px, 42%);
	overflow: hidden;
	background: var(--scaly-auth-bg);
	border-radius: 20px;
}

.auth-form-panel {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 56px 48px;
}

.auth-form-inner {
	width: min(578px, 100%);
}

.auth-brand {
	display: flex;
	justify-content: center;
	margin-bottom: 24px;
}

.auth-logo {
	width: 96px;
	height: auto;
}

.auth-title {
	margin: 0 0 28px;
	color: var(--scaly-auth-white);
	font-size: 36px;
	font-weight: 400;
	line-height: 1.2;
	text-align: center;
}

.auth-form {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.auth-field {
	position: relative;
}

.auth-field label {
	position: absolute;
	top: -11px;
	left: 18px;
	z-index: 1;
	padding: 2px 6px;
	background: var(--scaly-auth-bg);
	color: var(--scaly-auth-accent);
	font-size: 16px;
	line-height: 1;
}

.auth-field input {
	width: 100%;
	height: 48px;
	padding: 0 20px;
	border: 1px solid var(--scaly-auth-accent);
	border-radius: 999px;
	background: transparent;
	color: var(--scaly-auth-white);
	font-size: 14px;
	outline: none;
	transition: border-color .18s ease, box-shadow .18s ease;
}

.auth-field input:focus {
	border-color: #f2c29d;
	box-shadow: 0 0 0 3px rgba(229, 170, 126, .16);
}

.auth-password-field input {
	padding-right: 56px;
}

.auth-password-toggle {
	position: absolute;
	top: 50%;
	right: 14px;
	width: 36px;
	height: 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	background: transparent;
	color: var(--scaly-auth-white);
	transform: translateY(-50%);
}

.auth-options {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-top: 4px;
}

.auth-check {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--scaly-auth-accent);
	font-size: 18px;
	cursor: pointer;
}

.auth-check input {
	width: 18px;
	height: 18px;
	margin: 0;
	appearance: none;
	border: 1px solid var(--scaly-auth-accent);
	border-radius: 50%;
	background: transparent;
}

.auth-check input:checked {
	background: var(--scaly-auth-accent);
	box-shadow: inset 0 0 0 4px var(--scaly-auth-bg);
}

.auth-link {
	color: var(--scaly-auth-accent);
	font-size: 18px;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.auth-link:hover {
	color: #f2c29d;
}

.auth-submit {
	width: min(384px, 100%);
	height: 48px;
	align-self: center;
	margin-top: 84px;
	border: 0;
	border-radius: 999px;
	background: var(--scaly-auth-accent);
	color: var(--scaly-auth-white);
	font-size: 16px;
	font-weight: 600;
	transition: background .18s ease, transform .18s ease;
}

.auth-submit:hover {
	background: #efb98e;
	transform: translateY(-1px);
}

.auth-visual-panel {
	position: relative;
	min-height: 100%;
}

.auth-visual-image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.auth-visual-overlay {
	position: absolute;
	inset: 0;
	background: rgba(19, 19, 21, .45);
}

.auth-visual-copy {
	position: absolute;
	left: 50%;
	top: 50%;
	width: min(460px, calc(100% - 56px));
	color: var(--scaly-auth-white);
	text-align: center;
	transform: translate(-50%, -50%);
}

.auth-visual-copy h2 {
	margin: 0 0 24px;
	font-size: 40px;
	font-weight: 400;
	line-height: 1.15;
}

.auth-visual-copy p {
	margin: 0;
	font-size: 16px;
	line-height: 1.5;
}

.alert {
	border-radius: 12px;
}

.auth-page--recovery {
	background: var(--scaly-auth-bg);
}

.auth-recovery-card {
	width: min(758px, 100%);
	min-height: 631px;
	display: flex;
	flex-direction: column;
	align-items: center;
	margin: auto;
	padding: 72px 80px 60px;
	border: 1px solid rgba(229, 170, 126, .25);
	border-radius: 100px;
	background: var(--scaly-auth-bg);
}

.auth-recovery-alerts {
	width: min(527px, 100%);
	margin-bottom: 24px;
}

.auth-recovery-title {
	margin: 0;
	color: var(--scaly-auth-white);
	font-size: 45px;
	font-weight: 500;
	line-height: 1.2;
	text-align: center;
}

.auth-recovery-description {
	width: min(360px, 100%);
	margin: 28px 0 43px;
	color: var(--scaly-auth-white);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.4;
	text-align: center;
}

.auth-recovery-form {
	width: min(527px, 100%);
	display: flex;
	flex-direction: column;
	align-items: center;
}

.auth-field--large {
	width: 100%;
}

.auth-field--large input {
	height: 65px;
}

.auth-field--large label {
	top: -9px;
}

.auth-submit--recovery {
	width: min(384px, 100%);
	height: 56px;
	margin-top: 67px;
	font-weight: 500;
}

.auth-recovery-back {
	margin: auto 0 0;
	color: var(--scaly-auth-white);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.4;
	text-align: center;
}

.auth-recovery-back a {
	color: var(--scaly-auth-accent);
	font-weight: 500;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.auth-recovery-back a:hover {
	color: #f2c29d;
}

.auth-recovery-card--reset {
	min-height: 720px;
	padding-top: 64px;
	padding-bottom: 56px;
}

.auth-recovery-form--reset {
	gap: 0;
}

.auth-recovery-fields {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.auth-submit--reset {
	margin-top: 48px;
	margin-bottom: 20px;
}

@media (max-width: 991.98px) {
	.auth-recovery-card {
		min-height: auto;
		padding: 56px 32px 44px;
		border-radius: 60px;
	}

	.auth-recovery-title {
		font-size: 36px;
	}

	.auth-submit--recovery {
		margin-top: 48px;
	}

	.auth-recovery-card--reset {
		min-height: auto;
	}

	.auth-page {
		padding: 0;
		background: var(--scaly-auth-bg);
	}

	.auth-shell {
		min-height: 100vh;
		grid-template-columns: 1fr;
		border-radius: 0;
	}

	.auth-form-panel {
		padding: 40px 20px;
	}

	.auth-visual-panel {
		display: none;
	}

	.auth-title {
		font-size: 28px;
	}

	.auth-options {
		align-items: flex-start;
		flex-direction: column;
		gap: 14px;
	}

	.auth-check,
	.auth-link {
		font-size: 16px;
	}

	.auth-submit {
		width: 100%;
		margin-top: 36px;
	}
}

@media (max-width: 575.98px) {
	.auth-logo {
		width: 82px;
	}

	.auth-title {
		font-size: 24px;
	}

	.auth-form {
		gap: 24px;
	}

	.auth-recovery-card {
		min-height: 100vh;
		padding: 48px 20px 36px;
		border: 0;
		border-radius: 0;
	}

	.auth-recovery-title {
		font-size: 32px;
	}

	.auth-recovery-description {
		margin: 24px 0 36px;
	}

	.auth-field--large input {
		height: 56px;
	}

	.auth-submit--recovery {
		width: 100%;
		height: 52px;
		margin-top: 36px;
	}

	.auth-recovery-card--reset {
		min-height: 100vh;
	}

	.auth-submit--reset {
		margin-top: 36px;
	}
}