.auth-page {
	overflow-x: hidden;
}

.auth-container {
	margin-top: 56px;
	margin-bottom: 70px;
}

.auth-page .auth-container:has(+ .testimonials-section) {
	min-height: auto;
}

.auth-container .auth-card {
	margin-left: auto;
	margin-right: auto;
}

.auth-card {
	min-height: 640px;
	overflow: hidden;
	border-radius: 25px;
	background: #fff;
	box-shadow: 0 22px 70px rgba(15, 23, 42, 0.12);
}

.auth-visual {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 620px;
	padding: 56px;
	overflow: hidden;
	color: #fff;
	background:
		linear-gradient(180deg, rgba(21, 26, 36, 0.16) 0%, rgba(21, 26, 36, 0.82) 100%),
		url("../../img/optimized/personagens-800.webp") center/cover;
}

.auth-visual--signup {
	background:
		linear-gradient(180deg, rgba(21, 26, 36, 0.12) 0%, rgba(21, 26, 36, 0.84) 100%),
		url("../../img/optimized/personagens-800.webp") center/cover;
}

.auth-visual__overlay {
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 25% 20%, rgba(255,255,255,0.22), transparent 32%);
}

.auth-visual__content {
	position: relative;
	z-index: 2;
	max-width: 460px;
}

.auth-visual__logo {
	margin-bottom: 28px;
}

.logo-icon {
	display: inline-flex;
	width: 58px;
	height: 58px;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	background: #fdcf01;
	color: #151a24;
	font-size: 24px;
	box-shadow: 0 16px 32px rgba(15, 23, 42, 0.18);
}

.auth-visual__title {
	margin: 0 0 16px;
	font-family: "Bebas Neue", sans-serif;
	font-size: clamp(48px, 6vw, 72px);
	font-weight: 400;
	line-height: 0.94;
	letter-spacing: 0;
}

.auth-visual__text {
	margin: 0;
	max-width: 390px;
	color: rgba(255, 255, 255, 0.88);
	font-size: 18px;
	line-height: 1.55;
}

.auth-visual__features,
.auth-visual__stats {
	display: grid;
	gap: 14px;
	margin-top: 42px;
}

.feature-item {
	display: flex;
	align-items: center;
	gap: 12px;
	color: rgba(255, 255, 255, 0.92);
	font-weight: 600;
}

.feature-item i {
	color: #fdcf01;
}

.auth-visual__stats {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.stat-item {
	padding: 18px 14px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.12);
	backdrop-filter: blur(12px);
}

.stat-number {
	display: block;
	font-size: 24px;
	font-weight: 800;
	line-height: 1;
}

.stat-label {
	display: block;
	margin-top: 8px;
	color: rgba(255, 255, 255, 0.82);
	font-size: 12px;
	line-height: 1.35;
}

.auth-visual__shapes,
.shape {
	display: none;
}

.auth-form-side {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 56px 48px;
	background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.auth-form-wrapper {
	width: 100%;
	max-width: 440px;
	margin-left: auto;
	margin-right: auto;
}

.auth-form-header {
	margin-bottom: 30px;
}

.auth-form-header h1 {
	margin: 0 0 10px;
	color: #111827;
	font-family: "Bebas Neue", sans-serif;
	font-size: 44px;
	font-weight: 400;
	line-height: 0.96;
	letter-spacing: 0;
	font-weight: 600;
}

.auth-subtitle,
.auth-footer p,
.terms-text {
	color: #64748b;
	font-size: 14px;
	line-height: 1.55;
}

.auth-form {
	display: grid;
	gap: 18px;
}

.form-row {
	display: grid;
	gap: 18px;
}

.form-row--two {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-group {
	margin: 0;
}

.form-group label {
	display: block;
	margin-bottom: 8px;
	color: #243044;
	font-size: 13px;
	font-weight: 700;
}

.input-wrapper {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 52px;
	border: 1px solid #d8e0ea;
	border-radius: 8px;
	background: #fff;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-wrapper:focus-within {
	border-color: #ef017f;
	box-shadow: 0 0 0 4px rgba(239, 1, 127, 0.12);
}

.input-wrapper > i {
	width: 48px;
	color: #94a3b8;
	text-align: center;
	font-size: 16px;
}

.input-wrapper input {
	width: 100%;
	min-width: 0;
	height: 50px;
	border: 0;
	outline: 0;
	background: transparent;
	color: #111827;
	font-size: 15px;
}

.input-wrapper input::placeholder {
	color: #9aa7b8;
}

/* .input-wrapper--phone {
	padding-left: 14px;
} */

.toggle-password {
	display: inline-flex;
	width: 46px;
	height: 46px;
	align-items: center;
	justify-content: center;
	border: 0;
	background: transparent;
	color: #64748b;
}

.form-options {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	margin-top: -2px;
}

.link-subtle,
.auth-footer a {
	color: #0085de;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}

.link-subtle:hover,
.auth-footer a:hover {
	color: #ef017f;
}

.auth-btn-wrap {
	position: relative;
}

.auth-btn-wrap[data-login-method="panel"] {
	margin-top: 22px;
}

.auth-btn-wrap--last-used {
	padding-top: 11px;
}

.auth-btn-wrap--last-used .btn-primary,
.auth-btn-wrap--last-used .btn-google {
	box-shadow: 0 14px 28px rgba(0, 162, 255, 0.18);
}

.last-used-badge {
	position: absolute;
	top: 11px;
	right: 16px;
	z-index: 2;
	transform: translateY(-50%);
	padding: 5px 12px;
	border-radius: 999px;
	background: #88c701;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.01em;
	white-space: nowrap;
	box-shadow: 0 6px 16px rgba(136, 199, 1, 0.35);
	pointer-events: none;
}

.btn-primary,
.btn-google {
	display: inline-flex;
	width: 100%;
	min-height: 52px;
	align-items: center;
	justify-content: center;
	gap: 10px;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 800;
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
	border: 0;
	background: #ef017f;
	color: #fff;
	box-shadow: 0 14px 28px rgba(239, 1, 127, 0.2);
}

.btn-primary:hover {
	background: #00a2ff;
	transform: translateY(-1px);
}

.btn-google {
	border: 1px solid #d8e0ea;
	background: #fff;
	color: #243044;
}

.btn-google:hover {
	border-color: #b9c5d3;
	color: #111827;
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.divider {
	display: flex;
	align-items: center;
	gap: 14px;
	color: #94a3b8;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
}

.divider::before,
.divider::after {
	content: "";
	height: 1px;
	flex: 1;
	background: #e5eaf0;
}

.auth-footer {
	margin-top: 26px;
	text-align: center;
}

.auth-footer p {
	margin: 0;
}

.terms-text {
	margin-top: 10px !important;
	font-size: 12px !important;
}

.error-label {
	display: block;
	margin-top: 6px;
	color: #dc2626;
	font-size: 12px;
	font-weight: 700;
}

.input-error {
	color: #dc2626;
}

.code-inputs {
	display: flex;
	justify-content: center;
	gap: 10px;
}

.code-input {
	width: 65px;
	height: 86px;
	border: 1px solid #d8e0ea;
	border-radius: 8px;
	background: #fff;
	color: #111827;
	font-size: 22px;
	font-weight: 700;
	text-align: center;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.code-input:focus {
	border-color: #ef017f;
	outline: 0;
	box-shadow: 0 0 0 4px rgba(239, 1, 127, 0.12);
}

.loader-inline {
	display: inline-block;
	width: 14px;
	height: 14px;
	border: 2px solid rgba(255,255,255,0.45);
	border-top-color: #fff;
	border-radius: 50%;
	animation: auth-spin 0.8s linear infinite;
}

@keyframes auth-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (max-width: 991px) {
	.auth-card {
		min-height: auto;
	}

	.auth-visual {
		min-height: 320px;
		padding: 36px;
	}

	.auth-visual__title {
		font-size: 34px;
	}

	.auth-visual__text {
		font-size: 16px;
	}

	.auth-visual__stats {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 575px) {
	.auth-container {
		margin-top: 28px;
		margin-bottom: 28px;
	}

	.auth-card {
		border-radius: 25px;
	}

	.auth-visual {
		display: none;
	}

	.auth-form-side {
		padding: 30px 18px;
	}

	.auth-form-header h1 {
		font-size: 28px;
	}

	.form-row--two,
	.form-options {
		grid-template-columns: 1fr;
		flex-direction: column;
		gap: 10px;
	}
}
