/* ==========================================================================
   ROW — Auth pages
   ========================================================================== */

.is-row-auth {
	background: var(--row-bg);
}

.auth {
	display: grid;
	grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
	min-height: 100svh;
}

.auth__art {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: 100svh;
	padding: 2.4rem clamp(2rem, 4vw, 4.2rem) 2.4rem;
	overflow: hidden;
	border-right: 1px solid rgba(237, 228, 211, 0.1);
	background: #08090b;
}

.auth__art::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: var(--row-img-hero-keyart, url("../img/hero-keyart.svg"));
	background-size: cover;
	background-position: 72% center;
	opacity: 0.9;
	transform: scale(1.04);
}

.auth__art::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(7, 8, 10, 0.78) 0%, rgba(7, 8, 10, 0.2) 42%, rgba(7, 8, 10, 0.88) 100%),
		linear-gradient(90deg, rgba(7, 8, 10, 0.5), transparent 60%);
}

.auth__art-inner {
	position: relative;
	z-index: 1;
}

.auth__brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: var(--row-text);
}

.auth__brand:hover {
	color: var(--row-text);
}

.auth__brand .brand__mark {
	width: calc(var(--row-brand-w, 40px) * 1.1);
	height: calc(var(--row-brand-h, 40px) * 1.1);
}

.auth__art-copy {
	max-width: 460px;
	margin-top: auto;
	padding-top: 4rem;
}

.auth__kicker {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin-bottom: 20px;
	color: var(--row-gold);
	font-size: 0.64rem;
	font-weight: 600;
	letter-spacing: 0.24em;
	text-transform: uppercase;
}

.auth__kicker::before {
	content: "";
	width: 28px;
	height: 1px;
	background: var(--row-gold);
	opacity: 0.6;
}

.auth__quote {
	margin: 0 0 18px;
	font-size: clamp(2.2rem, 3.7vw, 3.6rem);
	line-height: 0.98;
	text-transform: uppercase;
}

.auth__quote em {
	color: var(--row-gold);
	font-style: normal;
}

.auth__sub {
	max-width: 380px;
	margin: 0;
	color: var(--row-text-soft);
	font-size: 0.95rem;
	line-height: 1.7;
}

.auth__benefits {
	display: grid;
	gap: 10px;
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
}

.auth__benefits li {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--row-steel);
	font-size: 0.78rem;
}

.auth__benefits .icon {
	width: 16px;
	height: 16px;
	color: var(--row-gold);
}

.auth__art-foot {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding-top: 2.5rem;
	color: rgba(237, 228, 211, 0.42);
	font-size: 0.62rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.auth__main {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 3rem clamp(1.5rem, 5vw, 5rem);
	background:
		radial-gradient(900px 500px at 80% 0%, rgba(224, 86, 47, 0.07), transparent 60%),
		var(--row-bg);
}

.auth__main-inner {
	width: 100%;
	max-width: 480px;
}

.auth-card {
	padding: clamp(1.6rem, 3.5vw, 2.7rem);
	border: 1px solid var(--row-line);
	background: rgba(20, 23, 27, 0.78);
	box-shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
	backdrop-filter: blur(12px);
}

.auth-card__eyebrow {
	margin: 0 0 12px;
	color: var(--row-gold);
	font-size: 0.62rem;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}

.auth-card h1 {
	margin: 0 0 12px;
	font-size: clamp(2.1rem, 4vw, 3rem);
	line-height: 0.98;
	text-transform: uppercase;
}

.auth-card__desc {
	margin: 0 0 26px;
	color: var(--row-muted);
	font-size: 0.92rem;
	line-height: 1.65;
}

.auth-progress {
	display: flex;
	align-items: center;
	gap: 0;
	margin: 0 0 30px;
	padding: 0;
	list-style: none;
	counter-reset: step;
}

.auth-progress__step {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 1;
	min-width: 0;
	color: var(--row-steel);
	font-size: 0.58rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.auth-progress__step::after {
	content: "";
	height: 1px;
	flex: 1;
	margin-left: 10px;
	background: var(--row-line);
}

.auth-progress__step:last-child {
	flex: 0 0 auto;
}

.auth-progress__step:last-child::after {
	display: none;
}

.auth-progress__num {
	display: inline-grid;
	place-items: center;
	width: 24px;
	height: 24px;
	border: 1px solid var(--row-line);
	color: var(--row-steel);
	font-family: var(--row-display);
	font-size: 0.58rem;
}

.auth-progress__step.is-active {
	color: var(--row-gold);
}

.auth-progress__step.is-active .auth-progress__num {
	border-color: var(--row-gold);
	color: var(--row-gold);
}

.auth-progress__step.is-done .auth-progress__num {
	border-color: var(--row-success);
	color: var(--row-success);
}

.auth-progress__step.is-done::after {
	background: rgba(92, 154, 107, 0.4);
}

/* ==========================================================================
   Forms
   ========================================================================== */

.form-row {
	margin-bottom: 18px;
}

.form-row > label,
.form-label {
	display: block;
	margin-bottom: 8px;
	color: var(--row-text-soft);
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="password"],
.form-row input[type="url"],
.form-row input[type="search"],
.form-row select,
.form-row textarea {
	width: 100%;
	min-height: 50px;
	padding: 0.75rem 0.9rem;
	border: 1px solid #2c333b;
	border-radius: var(--row-radius);
	background: rgba(9, 10, 12, 0.72);
	color: var(--row-text);
	font-size: 0.95rem;
	line-height: 1.4;
	transition: border-color 200ms var(--row-ease), box-shadow 200ms var(--row-ease), background 200ms var(--row-ease);
}

.form-row input::placeholder,
.form-row textarea::placeholder {
	color: #66707a;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
	outline: none;
	border-color: var(--row-gold);
	background: rgba(9, 10, 12, 0.92);
	box-shadow: 0 0 0 3px rgba(201, 163, 91, 0.12);
}

.form-row input[aria-invalid="true"] {
	border-color: var(--row-error);
}

.form-help {
	margin: 7px 0 0;
	color: #7f8892;
	font-size: 0.72rem;
	line-height: 1.5;
}

/* CAPTCHA */
.row-captcha {
	padding: 16px 18px;
	border: 1px solid rgba(201, 163, 91, 0.2);
	border-radius: var(--row-radius);
	background: rgba(201, 163, 91, 0.04);
}

.row-captcha__question {
	margin: 0 0 10px;
	color: var(--row-text);
	font-size: 0.95rem;
	line-height: 1.5;
}

.row-captcha input[type="text"] {
	max-width: 180px;
}

.row-captcha .form-help {
	margin-bottom: 0;
}

.row-captcha--turnstile {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.row-captcha--turnstile .cf-turnstile {
	min-height: 65px;
}

.password-field {
	position: relative;
}

.password-field input {
	padding-right: 50px;
}

.password-toggle {
	position: absolute;
	top: 50%;
	right: 8px;
	transform: translateY(-50%);
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--row-steel);
}

.password-toggle:hover {
	color: var(--row-gold);
}

.password-toggle .icon {
	width: 19px;
	height: 19px;
}

.password-toggle .is-hidden {
	display: none;
}

.password-toggle.is-visible .icon:first-child {
	display: none;
}

.password-toggle.is-visible .icon.is-hidden {
	display: block !important;
}

.strength {
	display: flex;
	gap: 4px;
	margin-top: 9px;
}

.strength__bar {
	height: 3px;
	flex: 1;
	background: var(--row-line);
	transition: background 200ms var(--row-ease);
}

.strength[data-score="1"] .strength__bar:nth-child(1) {
	background: var(--row-error);
}
.strength[data-score="2"] .strength__bar:nth-child(-n + 2) {
	background: #d9a441;
}
.strength[data-score="3"] .strength__bar:nth-child(-n + 3) {
	background: #9ab35c;
}
.strength[data-score="4"] .strength__bar {
	background: var(--row-success);
}

.form-check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 4px 0 20px;
	color: var(--row-muted);
	font-size: 0.78rem;
	line-height: 1.55;
}

.form-check input[type="checkbox"] {
	display: grid;
	place-content: center;
	width: 18px;
	height: 18px;
	margin: 2px 0 0;
	padding: 0;
	appearance: none;
	-webkit-appearance: none;
	border: 1px solid rgba(237, 228, 211, 0.38);
	background: rgba(255, 255, 255, 0.02);
	cursor: pointer;
	flex-shrink: 0;
	transition:
		background 180ms var(--row-ease),
		border-color 180ms var(--row-ease);
}

.form-check input[type="checkbox"]::before {
	content: "";
	width: 9px;
	height: 5px;
	border-left: 2px solid #0b0c0e;
	border-bottom: 2px solid #0b0c0e;
	transform: rotate(-45deg) scale(0);
	transition: transform 160ms var(--row-ease);
}

.form-check input[type="checkbox"]:checked {
	border-color: var(--row-ember);
	background: var(--row-ember);
}

.form-check input[type="checkbox"]:checked::before {
	transform: rotate(-45deg) scale(1);
}

.form-check input[type="checkbox"]:focus-visible {
	outline: 2px solid var(--row-gold);
	outline-offset: 3px;
}

.form-check a {
	color: var(--row-gold);
	text-decoration: underline;
	text-decoration-color: rgba(201, 163, 91, 0.35);
	text-underline-offset: 2px;
}

.form-check a:hover {
	color: var(--row-ember-bright);
}

.form-alert {
	margin: 0 0 20px;
	padding: 13px 15px;
	border: 1px solid;
	font-size: 0.82rem;
	line-height: 1.55;
}

.form-alert p {
	margin: 0;
}

.form-alert p + p {
	margin-top: 6px;
}

.form-alert--error {
	border-color: rgba(208, 90, 90, 0.42);
	background: rgba(208, 90, 90, 0.08);
	color: #f0b4b4;
}

.form-alert--success {
	border-color: rgba(92, 154, 107, 0.42);
	background: rgba(92, 154, 107, 0.08);
	color: #b6d8bf;
}

.form-alert--info {
	border-color: rgba(201, 163, 91, 0.32);
	background: rgba(201, 163, 91, 0.07);
	color: var(--row-gold-soft);
}

.auth-card .btn {
	width: 100%;
	margin-top: 4px;
}

.auth-card .btn[disabled] {
	opacity: 0.6;
	cursor: wait;
}

.auth-links {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid var(--row-line-soft);
	color: var(--row-steel);
	font-size: 0.78rem;
}

.auth-links a {
	color: var(--row-gold);
}

.auth-links a:hover {
	color: var(--row-ember-bright);
}

.auth-card__foot {
	margin: 22px 0 0;
	color: #737c86;
	font-size: 0.7rem;
	line-height: 1.6;
	text-align: center;
}

.auth-card__foot a {
	color: var(--row-steel);
}

.auth-card__foot a:hover {
	color: var(--row-gold);
}

.auth-legal {
	margin-top: 22px;
	color: #68717a;
	font-size: 0.68rem;
	line-height: 1.6;
	text-align: center;
}

.auth-legal a {
	color: var(--row-steel);
}

.hp-field {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	opacity: 0 !important;
}

.reset-state {
	text-align: center;
}

.reset-state__icon {
	width: 64px;
	height: 64px;
	display: grid;
	place-items: center;
	margin: 0 auto 20px;
	border: 1px solid var(--row-line-gold);
	border-radius: 50%;
	color: var(--row-gold);
	background: rgba(201, 163, 91, 0.05);
}

.reset-state__icon .icon {
	width: 28px;
	height: 28px;
}

.reset-state h1 {
	font-size: clamp(1.9rem, 4vw, 2.7rem);
}

.reset-state p {
	color: var(--row-muted);
	font-size: 0.9rem;
}

.reset-state .btn {
	width: 100%;
	margin-top: 8px;
}

.auth__art-mobile {
	display: none;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 980px) {
	.auth {
		grid-template-columns: 1fr;
	}
	.auth__art {
		min-height: 300px;
		padding: 1.5rem;
		border-right: 0;
		border-bottom: 1px solid rgba(237, 228, 211, 0.1);
	}
	.auth__art::before {
		background-position: 60% 35%;
	}
	.auth__art-copy {
		max-width: 520px;
		padding-top: 2rem;
	}
	.auth__quote {
		font-size: 2rem;
	}
	.auth__sub,
	.auth__benefits,
	.auth__art-foot {
		display: none;
	}
	.auth__main {
		align-items: flex-start;
		padding: 2.5rem 1.2rem 3rem;
	}
	.auth__main-inner {
		max-width: 520px;
	}
}

@media (max-width: 560px) {
	.auth__art {
		min-height: 230px;
	}
	.auth__brand .brand__name {
		font-size: 0.95rem;
	}
	.auth__quote {
		font-size: 1.7rem;
	}
	.auth-card {
		padding: 1.4rem;
	}
	.auth-card h1 {
		font-size: 2rem;
	}
	.auth-progress__label {
		display: none;
	}
	.auth-progress__step {
		flex: 1;
	}
	.auth-progress__step::after {
		margin-left: 6px;
	}
	.auth-links {
		align-items: flex-start;
		flex-direction: column;
		gap: 8px;
	}
}
