/* ==========================================================================
   Precillio — Auth pages
   ========================================================================== */

:root {
	--auth-brand: #f2620f;
	--auth-brand-600: #dc4f05;
	--auth-brand-red: #e3242b;
	--auth-brand-soft: #fff1e8;
	--auth-ink: #0f172a;
	--auth-ink-2: #334155;
	--auth-muted: #64748b;
	--auth-line: #e2e8f0;
	--auth-surface: #ffffff;
	--auth-bg: #f8fafc;
	--auth-dark: #0b1220;
	--auth-dark-2: #131c2e;
	--auth-radius: 12px;
	--auth-font: "Plus Jakarta Sans", "hkgrotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body.auth-body {
	margin: 0;
	font-family: var(--auth-font);
	color: var(--auth-ink);
	background: var(--auth-bg);
	-webkit-font-smoothing: antialiased;
}

.auth-shell {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	min-height: 100vh;
}

/* ---------- Brand panel ---------- */
.auth-brand {
	position: relative;
	overflow: hidden;
	color: #e2e8f0;
	background:
		radial-gradient(120% 80% at 0% 0%, var(--auth-dark-2) 0%, var(--auth-dark) 60%);
}

.auth-brand__grid {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
	background-size: 44px 44px;
	mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 75%);
	-webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 75%);
}

.auth-brand__glow {
	position: absolute;
	width: 620px;
	height: 620px;
	right: -220px;
	bottom: -240px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(242, 98, 15, .45) 0%, rgba(227, 36, 43, .18) 40%, transparent 70%);
	filter: blur(10px);
	animation: auth-float 14s ease-in-out infinite alternate;
}

@keyframes auth-float {
	from { transform: translate(0, 0) scale(1); }
	to   { transform: translate(-60px, -40px) scale(1.08); }
}

.auth-brand__inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 48px;
	height: 100%;
	padding: 56px clamp(32px, 5vw, 80px);
}

.auth-brand__badge {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	align-self: flex-start;
	padding: 7px 14px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .04em;
	color: #fed7aa;
	background: rgba(242, 98, 15, .12);
	border: 1px solid rgba(242, 98, 15, .3);
	border-radius: 999px;
}

.auth-brand__dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--auth-brand);
	box-shadow: 0 0 0 4px rgba(242, 98, 15, .25);
}

.auth-brand__title {
	margin: 0 0 18px;
	font-size: clamp(30px, 3.2vw, 44px);
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -.02em;
	color: #fff;
}

.auth-brand__title span {
	background: linear-gradient(90deg, #ff8a3d, var(--auth-brand-red));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.auth-brand__desc {
	max-width: 460px;
	margin: 0 0 36px;
	font-size: 16px;
	line-height: 1.65;
	color: #94a3b8;
}

.auth-features {
	display: grid;
	gap: 14px;
	max-width: 460px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.auth-features li {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 16px;
	background: rgba(255, 255, 255, .03);
	border: 1px solid rgba(255, 255, 255, .07);
	border-radius: var(--auth-radius);
	backdrop-filter: blur(4px);
}

.auth-features__icon {
	display: grid;
	place-items: center;
	flex: 0 0 40px;
	height: 40px;
	font-size: 20px;
	color: #ffb27a;
	background: rgba(242, 98, 15, .14);
	border-radius: 10px;
}

.auth-features strong {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: #f1f5f9;
}

.auth-features small {
	display: block;
	margin-top: 2px;
	font-size: 12.5px;
	color: #94a3b8;
}

.auth-quote {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
	padding-top: 24px;
	border-top: 1px solid rgba(255, 255, 255, .08);
}

.auth-quote i {
	font-size: 22px;
	line-height: 1;
	color: var(--auth-brand);
}

.auth-quote blockquote {
	margin: 0;
	font-size: 14.5px;
	font-style: italic;
	color: #cbd5e1;
}

/* ---------- Form panel ---------- */
.auth-panel {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 48px 24px 24px;
	background: var(--auth-surface);
}

.auth-panel__inner {
	width: 100%;
	max-width: 400px;
	margin: auto 0;
	animation: auth-in .5s ease-out both;
}

@keyframes auth-in {
	from { opacity: 0; transform: translateY(12px); }
	to   { opacity: 1; transform: none; }
}

.auth-logo {
	display: inline-block;
	margin-bottom: 36px;
}

.auth-logo img {
	height: 52px;
	width: auto;
}

.auth-icon {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	margin-bottom: 20px;
	font-size: 26px;
	color: var(--auth-brand);
	background: var(--auth-brand-soft);
	border-radius: 14px;
}

.auth-heading {
	margin: 0 0 6px;
	font-size: 26px;
	font-weight: 700;
	letter-spacing: -.015em;
	color: var(--auth-ink);
}

.auth-sub {
	margin: 0 0 28px;
	font-size: 14.5px;
	line-height: 1.6;
	color: var(--auth-muted);
}

/* Fields */
.auth-field { margin-bottom: 18px; }

.auth-field__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 8px;
}

.auth-label {
	display: block;
	margin-bottom: 8px;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--auth-ink-2);
}

.auth-field__head .auth-label { margin-bottom: 0; }

.auth-link {
	font-size: 13px;
	font-weight: 600;
	color: var(--auth-brand-600);
	text-decoration: none;
}

.auth-link:hover { color: var(--auth-brand-red); text-decoration: underline; }

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

.auth-input-wrap > .auth-input-icon {
	position: absolute;
	top: 50%;
	left: 14px;
	transform: translateY(-50%);
	font-size: 18px;
	color: #94a3b8;
	pointer-events: none;
	transition: color .15s;
}

.auth-input {
	display: block;
	width: 100%;
	height: 48px;
	padding: 0 44px 0 42px;
	font: inherit;
	font-size: 14.5px;
	color: var(--auth-ink);
	background: #fff;
	border: 1px solid var(--auth-line);
	border-radius: 10px;
	outline: none;
	transition: border-color .15s, box-shadow .15s;
}

.auth-input::placeholder { color: #a0aec0; }

.auth-input:hover { border-color: #cbd5e1; }

.auth-input:focus {
	border-color: var(--auth-brand);
	box-shadow: 0 0 0 4px rgba(242, 98, 15, .14);
}

.auth-input-wrap:focus-within > .auth-input-icon { color: var(--auth-brand); }

.auth-input--otp {
	padding: 0 16px;
	font-size: 22px;
	font-weight: 700;
	letter-spacing: .5em;
	text-align: center;
	height: 56px;
}

.auth-input--otp::-webkit-outer-spin-button,
.auth-input--otp::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.auth-input--otp { -moz-appearance: textfield; }

.auth-eye {
	position: absolute;
	top: 50%;
	right: 6px;
	transform: translateY(-50%);
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	font-size: 18px;
	color: #94a3b8;
	background: transparent;
	border: 0;
	border-radius: 8px;
	cursor: pointer;
}

.auth-eye:hover { color: var(--auth-ink-2); background: #f1f5f9; }

/* Button */
.auth-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	height: 48px;
	margin-top: 8px;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	color: #fff;
	background: linear-gradient(135deg, var(--auth-brand) 0%, var(--auth-brand-red) 100%);
	border: 0;
	border-radius: 10px;
	box-shadow: 0 8px 20px -8px rgba(227, 36, 43, .55);
	cursor: pointer;
	transition: transform .15s, box-shadow .15s, filter .15s;
}

.auth-btn:hover {
	filter: brightness(1.05);
	transform: translateY(-1px);
	box-shadow: 0 12px 24px -10px rgba(227, 36, 43, .6);
}

.auth-btn:active { transform: none; }

.auth-btn:focus-visible {
	outline: none;
	box-shadow: 0 0 0 4px rgba(242, 98, 15, .3);
}

.auth-btn i { font-size: 18px; transition: transform .15s; }
.auth-btn:hover i { transform: translateX(3px); }

.auth-btn.is-loading { pointer-events: none; color: transparent; }
.auth-btn.is-loading i { opacity: 0; }

.auth-btn.is-loading::after {
	content: "";
	position: absolute;
	width: 20px;
	height: 20px;
	border: 2px solid rgba(255, 255, 255, .45);
	border-top-color: #fff;
	border-radius: 50%;
	animation: auth-spin .7s linear infinite;
}

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

/* Alerts */
.auth-alert {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin-bottom: 20px;
	padding: 12px 14px;
	font-size: 13.5px;
	line-height: 1.5;
	border: 1px solid;
	border-radius: 10px;
}

.auth-alert i { font-size: 18px; line-height: 1.2; }

.auth-alert--danger  { color: #b42318; background: #fef3f2; border-color: #fecdca; }
.auth-alert--success { color: #067647; background: #ecfdf3; border-color: #abefc6; }
.auth-alert--info    { color: #9a3412; background: var(--auth-brand-soft); border-color: #fed7aa; }

/* Misc */
.auth-divider {
	margin: 28px 0 0;
	padding-top: 20px;
	font-size: 13.5px;
	text-align: center;
	color: var(--auth-muted);
	border-top: 1px solid var(--auth-line);
}

.auth-back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.auth-secure {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin-top: 22px;
	font-size: 12.5px;
	color: #94a3b8;
}

.auth-secure i { font-size: 14px; }

.auth-footer {
	margin-top: 40px;
	font-size: 12px;
	text-align: center;
	color: #94a3b8;
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
	.auth-shell { grid-template-columns: 1fr; }
	.auth-brand { display: none; }
	.auth-panel {
		min-height: 100vh;
		padding: 40px 16px 20px;
		background:
			radial-gradient(80% 40% at 50% 0%, var(--auth-brand-soft) 0%, transparent 70%),
			var(--auth-surface);
	}
	.auth-logo { display: block; text-align: center; }
	.auth-logo img { height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
	.auth-brand__glow, .auth-panel__inner { animation: none; }
}
