/*!
 * LionCosmetic 2.2.0 – login / registration page
 */
@property --bl-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

body.bl-auth-body { padding: 0; background: #0f0a16; }

.bl-auth {
	--bl-px: 0; --bl-py: 0;
	position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); grid-template-areas: "panel visual";
	min-height: 100vh; min-height: 100dvh; overflow: hidden; background: #fbf7ff;
}

/* ---------- aurora background ---------- */
.bl-auth__aurora { position: absolute; inset: 0; pointer-events: none; }
.bl-auth__aurora i { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; animation: bl-aurora 16s ease-in-out infinite alternate; }
.bl-auth__aurora i:nth-child(1) { width: 480px; height: 480px; top: -120px; right: -100px; background: var(--bl-accent); }
.bl-auth__aurora i:nth-child(2) { width: 520px; height: 520px; bottom: -160px; right: 18%; background: var(--bl-primary); opacity: .35; animation-delay: -6s; }
.bl-auth__aurora i:nth-child(3) { width: 340px; height: 340px; top: 38%; right: 38%; background: #c7a6ff; opacity: .5; animation-delay: -11s; }

/* ---------- visual side ---------- */
.bl-auth__visual {
	grid-area: visual; position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: 36px 44px; overflow: hidden; color: #fff;
	background:
		radial-gradient(900px 500px at 80% 0%, rgba(var(--bl-accent-rgb), 0.45), transparent 60%),
		radial-gradient(800px 600px at 10% 100%, rgba(var(--bl-primary-rgb), 0.7), transparent 60%),
		linear-gradient(160deg, #1d1030, #0f0a16 70%);
	border-start-start-radius: 44px; border-end-start-radius: 44px;
}
.bl-auth__grid { position: absolute; inset: 0; opacity: .5; background-image: radial-gradient(rgba(255, 255, 255, .22) 1px, transparent 1.4px); background-size: 28px 28px; mask-image: radial-gradient(circle at 50% 45%, #000 20%, transparent 72%); -webkit-mask-image: radial-gradient(circle at 50% 45%, #000 20%, transparent 72%); }
.bl-auth__vhead, .bl-auth__quotes { position: relative; z-index: 2; }

.bl-auth__stage { position: relative; z-index: 1; display: grid; place-items: center; flex: 1; min-height: 340px; }
.bl-auth__art { position: relative; width: min(78%, 440px); translate: calc(var(--bl-px) * -16px) calc(var(--bl-py) * -16px); filter: drop-shadow(0 40px 60px rgba(0, 0, 0, .45)); animation: bl-float 8s ease-in-out infinite; transition: translate .3s ease-out; }
.bl-auth__ring { position: absolute; top: 50%; left: 50%; border: 1px dashed rgba(255, 255, 255, .25); border-radius: 50%; translate: -50% -50%; }
.bl-auth__ring--1 { width: 62%; aspect-ratio: 1; animation: bl-spin 40s linear infinite; }
.bl-auth__ring--2 { width: 86%; aspect-ratio: 1; border-style: solid; border-color: rgba(255, 255, 255, .1); animation: bl-spin 70s linear infinite reverse; }

.bl-glass {
	position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 12px 18px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 20px;
	background: rgba(255, 255, 255, .12); -webkit-backdrop-filter: blur(14px) saturate(1.5); backdrop-filter: blur(14px) saturate(1.5); box-shadow: 0 18px 40px rgba(0, 0, 0, .25);
	font-size: 12px; line-height: 1.6; animation: bl-float 7s ease-in-out infinite; transition: translate .3s ease-out;
}
.bl-glass b { display: block; font-size: 13.5px; }
.bl-glass small { color: rgba(255, 255, 255, .72); }
.bl-glass .bl-icon { color: var(--bl-accent); }
.bl-glass--one { top: 8%; inset-inline-end: 4%; translate: calc(var(--bl-px) * 22px) calc(var(--bl-py) * 22px); }
.bl-glass--two { bottom: 16%; inset-inline-start: 2%; translate: calc(var(--bl-px) * 30px) calc(var(--bl-py) * 30px); animation-delay: -2.5s; }
.bl-glass--three { top: 46%; inset-inline-start: 6%; translate: calc(var(--bl-px) * 14px) calc(var(--bl-py) * 14px); animation-delay: -5s; }

.bl-auth__quotes { position: relative; min-height: 84px; }
.bl-auth__quote { position: absolute; inset: 0; margin: 0; font-size: 15px; line-height: 2; color: rgba(255, 255, 255, .8); opacity: 0; animation: bl-quote 15s infinite; }
.bl-auth__quote b { display: block; color: #fff; font-size: 20px; }
.bl-auth__quote:nth-child(2) { animation-delay: 5s; }
.bl-auth__quote:nth-child(3) { animation-delay: 10s; }

/* ---------- form side ---------- */
.bl-auth__panel { grid-area: panel; position: relative; z-index: 2; display: grid; place-items: center; padding: 72px 24px 40px; }
.bl-auth__back { position: absolute; top: 26px; inset-inline-start: 32px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 16px 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .7); font-size: 13px; font-weight: 700; color: var(--bl-primary-700); box-shadow: var(--bl-shadow-sm); }
.bl-auth__back:hover { background: #fff; transform: translateX(3px); }

.bl-auth__card {
	position: relative; width: min(460px, 100%); padding: 38px 36px 28px; border-radius: 34px; isolation: isolate;
	background: rgba(255, 255, 255, .74); -webkit-backdrop-filter: blur(24px) saturate(1.5); backdrop-filter: blur(24px) saturate(1.5);
	box-shadow: 0 40px 80px -20px rgba(var(--bl-primary-rgb), 0.35), 0 2px 0 rgba(255, 255, 255, .9) inset;
	animation: bl-card-in .9s var(--bl-ease) both;
}
.bl-auth__card::before {
	content: ""; position: absolute; inset: 0; z-index: -1; padding: 1.5px; border-radius: inherit; pointer-events: none;
	background: conic-gradient(from var(--bl-angle), transparent 0 55%, var(--bl-accent), var(--bl-primary), transparent 95%);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
	animation: bl-angle 7s linear infinite;
}
.bl-auth__card.is-shake { animation: bl-shake .5s; }

.bl-auth__head { text-align: center; margin-bottom: 26px; }
.bl-auth__logo { display: inline-grid; place-items: center; width: 62px; height: 62px; margin-bottom: 14px; border-radius: 22px; color: #fff; background: linear-gradient(145deg, var(--bl-accent), var(--bl-primary)); box-shadow: 0 14px 30px rgba(var(--bl-primary-rgb), 0.4); animation: bl-logo 5s ease-in-out infinite; }
.bl-auth__head h1 { margin: 0 0 6px; font-size: 26px; }
.bl-auth__head p { margin: 0; color: var(--bl-muted); font-size: 13.5px; }

/* tabs */
.bl-tabs { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; margin-bottom: 22px; padding: 5px; border-radius: 20px; background: var(--bl-primary-50); }
.bl-tabs__pill { position: absolute; top: 5px; bottom: 5px; inset-inline-start: 5px; width: calc((100% - 10px) / 2); border-radius: 15px; background: #fff; box-shadow: 0 8px 20px rgba(var(--bl-primary-rgb), 0.18); transition: transform .45s var(--bl-ease); }
.bl-tabs[data-active="1"] .bl-tabs__pill { transform: translateX(-100%); }
.bl-tabs__tab { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; border: 0; border-radius: 15px; background: transparent; color: var(--bl-muted); font-weight: 700; font-size: 13.5px; transition: color .3s; }
.bl-tabs__tab.is-active { color: var(--bl-primary); }

/* steps */
.bl-step[hidden] { display: none; }
.bl-step.is-active { animation: bl-step-in .6s var(--bl-ease) both; }
.bl-step.is-leaving { animation: bl-step-out .28s ease-in both; }
.bl-panelfield:not([hidden]) { animation: bl-step-in .45s var(--bl-ease) both; }

/* floating label field */
.bl-field { position: relative; margin-bottom: 8px; }
.bl-field input { width: 100%; height: 62px; padding: 24px 52px 8px 16px; border: 1.5px solid var(--bl-line); border-radius: 18px; background: rgba(255, 255, 255, .9); font-size: 17px; font-weight: 700; letter-spacing: .5px; text-align: left; }
.bl-field label { position: absolute; top: 19px; right: 52px; font-size: 14px; font-weight: 400; color: var(--bl-muted); pointer-events: none; transform-origin: right top; transition: transform .25s var(--bl-ease), color .25s; }
.bl-field input:focus + label, .bl-field input:not(:placeholder-shown) + label { transform: translateY(-13px) scale(.78); color: var(--bl-primary); }
.bl-field__icon { position: absolute; top: 50%; right: 16px; translate: 0 -50%; color: var(--bl-primary); transition: transform .3s var(--bl-ease); }
.bl-field input:focus ~ .bl-field__icon { transform: scale(1.15) rotate(-6deg); }
.bl-field__hint { display: block; margin: 6px 6px 0; color: var(--bl-muted); font-size: 11.5px; direction: ltr; text-align: right; }
.bl-field.is-error input { border-color: #e5484d; box-shadow: 0 0 0 4px rgba(229, 72, 77, .12); animation: bl-shake .4s; }

/* button */
.bl-auth__btn {
	position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 56px; margin-top: 18px; overflow: hidden; border: 0; border-radius: 18px; color: #fff; font-size: 15px; font-weight: 700;
	background: linear-gradient(110deg, var(--bl-primary), var(--bl-accent), var(--bl-primary)); background-size: 220% 100%; animation: bl-gradient 6s linear infinite;
	box-shadow: 0 16px 34px rgba(var(--bl-primary-rgb), 0.4); transition: transform .3s var(--bl-ease), box-shadow .3s;
}
.bl-auth__btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .45) 50%, transparent 65%); transform: translateX(120%); transition: transform .8s; }
.bl-auth__btn:hover { transform: translateY(-3px); box-shadow: 0 22px 44px rgba(var(--bl-primary-rgb), 0.5); }
.bl-auth__btn:hover::after { transform: translateX(-120%); }
.bl-auth__btn:active { transform: translateY(0) scale(.99); }
.bl-auth__btn-arrow { transition: transform .3s var(--bl-ease); }
.bl-auth__btn:hover .bl-auth__btn-arrow { transform: translateX(-5px); }
.bl-auth__spin { position: absolute; width: 22px; height: 22px; border: 3px solid rgba(255, 255, 255, .4); border-top-color: #fff; border-radius: 50%; opacity: 0; animation: bl-spin .7s linear infinite; }
.bl-auth__btn.is-loading { pointer-events: none; }
.bl-auth__btn.is-loading .bl-auth__btn-label, .bl-auth__btn.is-loading .bl-auth__btn-arrow { opacity: 0; }
.bl-auth__btn.is-loading .bl-auth__spin { opacity: 1; }

/* OTP */
.bl-auth__sent { margin: 0 0 20px; text-align: center; color: var(--bl-muted); font-size: 13.5px; }
.bl-auth__sent b { color: var(--bl-ink); }
.bl-auth__edit { margin-inline-start: 6px; padding: 0; border: 0; background: none; color: var(--bl-primary); font-weight: 700; font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
.bl-otp { display: flex; justify-content: center; gap: 10px; }
.bl-otp input { width: 56px; height: 66px; padding: 0; border: 1.5px solid var(--bl-line); border-radius: 18px; background: rgba(255, 255, 255, .92); font-size: 26px; font-weight: 700; text-align: center; caret-color: var(--bl-accent); transition: transform .25s var(--bl-ease), border-color .2s, box-shadow .2s, background .2s; }
.bl-otp input:focus { transform: translateY(-4px); border-color: var(--bl-primary); box-shadow: 0 12px 24px rgba(var(--bl-primary-rgb), 0.22); }
.bl-otp input.is-filled { background: var(--bl-primary-50); border-color: var(--bl-primary); animation: bl-pop .3s var(--bl-ease); }
.bl-otp.is-error input { border-color: #e5484d; background: #fff1f2; animation: bl-shake .45s; }
.bl-otp.is-ok input { border-color: #1fa971; background: #effaf4; }

.bl-timer { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; margin-top: 20px; color: var(--bl-muted); font-size: 13px; }
.bl-timer__ring { transform: rotate(-90deg); }
.bl-timer__ring circle { fill: none; stroke-width: 3; }
.bl-timer__bg { stroke: var(--bl-primary-100); }
.bl-timer__bar { stroke: var(--bl-accent); stroke-linecap: round; stroke-dasharray: 97.4; stroke-dashoffset: var(--bl-dash, 0); transition: stroke-dashoffset 1s linear; }
.bl-timer b { color: var(--bl-primary); font-variant-numeric: tabular-nums; }
.bl-auth__resend { padding: 8px 20px; border: 1.5px solid var(--bl-primary); border-radius: 999px; background: transparent; color: var(--bl-primary); font-weight: 700; font-size: 13px; }
.bl-auth__resend:hover { background: var(--bl-primary); color: #fff; }

/* message */
.bl-auth__msg { min-height: 1.8em; margin: 14px 0 0; text-align: center; font-size: 13px; color: var(--bl-muted); }
.bl-auth__msg.is-error { color: #d12f45; }
.bl-auth__msg.is-ok { color: #178a5b; }

.bl-auth__foot { display: grid; gap: 6px; margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--bl-line); text-align: center; }
.bl-auth__foot small { color: var(--bl-muted); font-size: 11.5px; }
.bl-auth__foot a { color: var(--bl-primary); font-size: 12.5px; font-weight: 700; }

/* success */
.bl-done { position: relative; display: grid; justify-items: center; padding: 10px 0 6px; text-align: center; }
.bl-done h2 { margin: 12px 0 4px; font-size: 24px; }
.bl-done p { margin: 0; color: var(--bl-muted); }
.bl-done__svg { overflow: visible; }
.bl-done__circle { fill: #e4f5ee; stroke: #1fa971; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 214; stroke-dashoffset: 214; transform-origin: center; transform: rotate(-90deg); animation: bl-draw .8s var(--bl-ease) forwards; }
.bl-done__check { fill: none; stroke: #1fa971; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 50; stroke-dashoffset: 50; animation: bl-draw .5s .65s var(--bl-ease) forwards; }
.bl-confetti { position: absolute; top: 40px; left: 50%; width: 0; height: 0; }
.bl-confetti span { position: absolute; width: 8px; height: 14px; border-radius: 2px; background: var(--c); opacity: 0; animation: bl-confetti 1.3s var(--d, 0s) cubic-bezier(.2, .8, .3, 1) forwards; }

/* ---------- keyframes ---------- */
@keyframes bl-angle { to { --bl-angle: 360deg; } }
@keyframes bl-aurora { from { transform: translate(0, 0) scale(1); } to { transform: translate(-60px, 50px) scale(1.2); } }
@keyframes bl-card-in { from { opacity: 0; transform: translateY(34px) scale(.96); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes bl-step-in { from { opacity: 0; transform: translateX(-28px) scale(.98); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes bl-step-out { to { opacity: 0; transform: translateX(28px) scale(.98); filter: blur(6px); } }
@keyframes bl-shake { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }
@keyframes bl-gradient { to { background-position: -220% 0; } }
@keyframes bl-logo { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-5px) rotate(-5deg); } }
@keyframes bl-quote { 0% { opacity: 0; transform: translateY(14px); } 6%, 30% { opacity: 1; transform: none; } 36%, 100% { opacity: 0; transform: translateY(-14px); } }
@keyframes bl-draw { to { stroke-dashoffset: 0; } }
@keyframes bl-confetti {
	0% { opacity: 1; transform: translate(0, 0) rotate(0); }
	100% { opacity: 0; transform: translate(var(--x), var(--y)) rotate(var(--r)); }
}

/* ---------- responsive ---------- */
@media (max-width: 991px) {
	.bl-auth { grid-template-columns: 1fr; grid-template-areas: "panel"; }
	.bl-auth__visual { display: none; }
	.bl-auth__panel { padding: 76px 16px 32px; }
	.bl-auth__back { inset-inline-start: 16px; top: 18px; }
}
@media (max-width: 420px) {
	.bl-auth__card { padding: 30px 20px 22px; border-radius: 28px; }
	.bl-otp { gap: 7px; }
	.bl-otp input { width: 48px; height: 58px; font-size: 22px; border-radius: 15px; }
	.bl-auth__head h1 { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) {
	.bl-auth__card, .bl-step.is-active { animation: none !important; }
	.bl-done__circle, .bl-done__check { stroke-dashoffset: 0; }
	.bl-confetti { display: none; }
}
