/* TISR Register — [tisr_register] */
:root { --tisr-brand: #B3202F; }

.tisr-reg {
	--tisr-brand-dark: color-mix(in srgb, var(--tisr-brand) 75%, #000);
	--tisr-brand-soft: color-mix(in srgb, var(--tisr-brand) 9%, #fff);
	--tisr-ring: color-mix(in srgb, var(--tisr-brand) 16%, transparent);
	--tisr-gold: #E7B53C;
	--tisr-ink: #0f172a;
	--tisr-text: #334155;
	--tisr-muted: #64748b;
	--tisr-line: #e2e8f0;
	--tisr-field: #f8fafc;
	--tisr-ok: #16a34a;
	box-sizing: border-box;
	container-type: inline-size;
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
	align-items: center;
	gap: clamp(32px, 5vw, 96px);
	width: 100%;
	max-width: 1440px;
	margin: 0 auto;
	padding: clamp(24px, 4vw, 56px) clamp(16px, 3vw, 32px) clamp(48px, 6vw, 72px);
	color: var(--tisr-text);
	font-family: "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-size: 15px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}
.tisr-reg *, .tisr-reg *::before, .tisr-reg *::after { box-sizing: border-box; }

/* ---------- Artwork ---------- */
.tisr-reg__art { position: relative; padding: 28px 30px 40px 26px; }

/* Form on the left, artwork on the right */
.tisr-reg--form-left { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }
.tisr-reg--form-left .tisr-reg__panel { order: -1; }
.tisr-reg .tisr-orb {
	position: absolute;
	border-radius: 50%;
	filter: blur(64px);
	opacity: .5;
	pointer-events: none;
	animation: tisr-drift 18s ease-in-out infinite alternate;
}
.tisr-reg .tisr-orb--a { width: 320px; height: 320px; top: -60px; left: -60px; background: color-mix(in srgb, var(--tisr-brand) 40%, transparent); }
.tisr-reg .tisr-orb--b { width: 300px; height: 300px; bottom: -40px; right: -20px; background: color-mix(in srgb, var(--tisr-gold) 50%, transparent); animation-delay: -7s; }

.tisr-reg__float {
	position: relative;
	z-index: 1;
	animation: tisr-fade 1s ease both, tisr-float 9s ease-in-out 1.2s infinite;
}
.tisr-reg__float::before {
	content: "";
	position: absolute;
	inset: 22px -22px -22px 22px;
	z-index: -1;
	border-radius: 30px;
	background: linear-gradient(135deg, var(--tisr-brand), var(--tisr-gold));
	opacity: .2;
}
.tisr-reg__card {
	position: relative;
	margin: 0;
	overflow: hidden;
	aspect-ratio: 1 / 1;
	border-radius: 28px;
	background: #e5e7eb;
	box-shadow:
		0 50px 90px -40px rgba(15, 23, 42, .5),
		0 22px 40px -22px color-mix(in srgb, var(--tisr-brand) 45%, transparent);
	transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
	transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.tisr-reg__card { z-index: 1; }
.tisr-reg__card img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
	transform: scale(var(--tisr-zoom, 1));
	transform-origin: center;
	animation: tisr-kenburns 22s ease-in-out infinite alternate;
}

/* Animated glowing border */
@property --tisr-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.tisr-reg .tisr-glow {
	position: absolute;
	inset: -3px;
	z-index: 0;
	border-radius: 31px;
	background: conic-gradient(from var(--tisr-angle), var(--tisr-brand), var(--tisr-gold), #ffffff, var(--tisr-brand) 70%, var(--tisr-gold), var(--tisr-brand));
	animation: tisr-angle 7s linear infinite;
	pointer-events: none;
}
.tisr-reg .tisr-glow::after {
	content: "";
	position: absolute;
	inset: -10px;
	border-radius: 40px;
	background: inherit;
	filter: blur(26px);
	opacity: .4;
}

/* Floating chip (top-right) */
.tisr-reg .tisr-chip {
	position: absolute;
	top: -18px;
	right: 26px;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px 8px 8px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .92);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	color: var(--tisr-ink);
	font-size: 13px;
	font-weight: 700;
	box-shadow: 0 14px 30px -14px rgba(15, 23, 42, .45);
	animation: tisr-rise .8s cubic-bezier(.2, .7, .2, 1) both .7s, tisr-bob 5s ease-in-out 1.5s infinite;
}
.tisr-reg .tisr-chip__icon {
	display: grid;
	place-items: center;
	width: 28px; height: 28px;
	border-radius: 50%;
	background: linear-gradient(135deg, #22c55e, #15803d);
	color: #fff;
}
.tisr-reg .tisr-chip__icon svg { width: 16px; height: 16px; }

/* Sparkles */
.tisr-reg .tisr-sparkles { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.tisr-reg .tisr-sparkles i {
	position: absolute;
	width: 7px; height: 7px;
	border-radius: 50%;
	background: var(--tisr-gold);
	box-shadow: 0 0 12px 2px color-mix(in srgb, var(--tisr-gold) 70%, transparent);
	opacity: 0;
	animation: tisr-sparkle 6s ease-in-out infinite;
}
.tisr-reg .tisr-sparkles i:nth-child(1) { left: 6%;  top: 70%; animation-delay: 0s; }
.tisr-reg .tisr-sparkles i:nth-child(2) { left: 22%; top: 8%;  animation-delay: 1.1s; background: var(--tisr-brand); box-shadow: 0 0 12px 2px color-mix(in srgb, var(--tisr-brand) 60%, transparent); }
.tisr-reg .tisr-sparkles i:nth-child(3) { left: 48%; top: 96%; animation-delay: 2.3s; width: 5px; height: 5px; }
.tisr-reg .tisr-sparkles i:nth-child(4) { left: 78%; top: 4%;  animation-delay: 3.2s; }
.tisr-reg .tisr-sparkles i:nth-child(5) { left: 97%; top: 52%; animation-delay: 4.1s; background: var(--tisr-brand); box-shadow: 0 0 12px 2px color-mix(in srgb, var(--tisr-brand) 60%, transparent); }
.tisr-reg .tisr-sparkles i:nth-child(6) { left: 2%;  top: 28%; animation-delay: 5s; width: 5px; height: 5px; }
.tisr-reg .tisr-sparkles i:nth-child(7) { left: 88%; top: 90%; animation-delay: 2.8s; width: 9px; height: 9px; }
.tisr-reg__card::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 55%, rgba(15, 23, 42, .35) 100%);
	pointer-events: none;
}
.tisr-reg .tisr-shine {
	position: absolute;
	top: 0; bottom: 0; left: 0;
	z-index: 2;
	width: 45%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .4), transparent);
	transform: translateX(-130%) skewX(-18deg);
	animation: tisr-shine 7s ease-in-out infinite 1.5s;
	pointer-events: none;
}
.tisr-badge {
	position: absolute;
	left: -18px;
	bottom: 34px;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 10px 16px 10px 10px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .88);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	color: var(--tisr-ink);
	font-size: 14px;
	font-weight: 700;
	box-shadow: 0 14px 30px -14px rgba(15, 23, 42, .45);
	animation: tisr-rise .8s cubic-bezier(.2, .7, .2, 1) both .5s, tisr-bob 6s ease-in-out 1.3s infinite reverse;
}
.tisr-badge__icon {
	display: grid;
	place-items: center;
	width: 32px; height: 32px;
	border-radius: 50%;
	background: var(--tisr-brand);
	color: #fff;
}

/* ---------- Panel ---------- */
.tisr-reg__panel { position: relative; z-index: 1; animation: tisr-rise .7s cubic-bezier(.2, .7, .2, 1) both .1s; }
.tisr-reg__body { width: 100%; max-width: 460px; margin: 0 auto; }

.tisr-reg .tisr-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--tisr-brand-soft);
	color: var(--tisr-brand);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
}
.tisr-reg .tisr-eyebrow::before {
	content: "";
	width: 6px; height: 6px;
	border-radius: 50%;
	background: currentColor;
	box-shadow: 0 0 0 4px var(--tisr-ring);
}
.tisr-reg .tisr-reg__title {
	margin: 14px 0 8px;
	padding: 0;
	color: var(--tisr-ink);
	font-family: inherit;
	font-size: clamp(28px, 3vw, 38px);
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -.02em;
}
.tisr-reg .tisr-reg__sub { margin: 0 0 26px; color: var(--tisr-muted); font-size: 15.5px; }

/* Fields */
.tisr-reg .tisr-field { margin: 0 0 14px; }
.tisr-reg .tisr-field label {
	display: block;
	margin: 0 0 7px;
	padding: 0;
	color: var(--tisr-ink);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
}
.tisr-reg .tisr-req { color: var(--tisr-brand); }
.tisr-reg .tisr-control { position: relative; }
.tisr-reg .tisr-control__icon {
	z-index: 2;
	position: absolute;
	top: 50%; left: 16px;
	display: flex;
	color: #94a3b8;
	transform: translateY(-50%);
	pointer-events: none;
	transition: color .2s;
}
.tisr-reg .tisr-control:focus-within .tisr-control__icon { color: var(--tisr-brand); }
.tisr-reg .tisr-control input {
	display: block;
	width: 100%;
	height: 52px;
	margin: 0;
	padding: 0 16px 0 46px;
	border: 1.5px solid var(--tisr-line);
	border-radius: 12px;
	background: var(--tisr-field);
	color: var(--tisr-ink);
	font-family: inherit;
	font-size: 15.5px;
	line-height: 1;
	box-shadow: none;
	outline: 0;
	transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.tisr-reg .tisr-control--pw input { padding-right: 52px; }
.tisr-reg .tisr-control input::placeholder { color: #a0aec0; opacity: 1; }
.tisr-reg .tisr-control input:hover { border-color: #cbd5e1; }
.tisr-reg .tisr-control input:focus {
	border-color: var(--tisr-brand);
	background: #fff;
	box-shadow: 0 0 0 4px var(--tisr-ring);
}
.tisr-reg .tisr-eye {
	z-index: 2;
	position: absolute;
	top: 1px; right: 1px;
	display: grid;
	place-items: center;
	width: 50px; height: 50px;
	margin: 0; padding: 0;
	border: 0;
	border-radius: 0 11px 11px 0;
	background: transparent;
	color: var(--tisr-muted);
	box-shadow: none;
	cursor: pointer;
}
.tisr-reg .tisr-eye:hover,
.tisr-reg .tisr-eye:focus { background: transparent; color: var(--tisr-brand); border: 0; }
.tisr-reg .tisr-eye[aria-pressed="true"] { color: var(--tisr-brand); }

.tisr-reg .tisr-field__msg { min-height: 0; margin: 6px 2px 0; color: var(--tisr-muted); font-size: 12.5px; line-height: 1.45; }
.tisr-reg .tisr-field.has-error input { border-color: #dc2626; background: #fff7f7; }
.tisr-reg .tisr-field.has-error input:focus { box-shadow: 0 0 0 4px rgba(220, 38, 38, .14); }
.tisr-reg .tisr-field.has-error .tisr-field__msg { color: #dc2626; font-weight: 500; }
.tisr-reg .tisr-field.is-valid input { border-color: color-mix(in srgb, var(--tisr-ok) 55%, var(--tisr-line)); }

/* Strength meter */
.tisr-reg .tisr-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 8px 2px 0; }
.tisr-reg .tisr-meter span { height: 4px; border-radius: 4px; background: var(--tisr-line); transition: background-color .3s; }
.tisr-reg .tisr-meter[data-score="0"] span:nth-child(-n+1) { background: #dc2626; }
.tisr-reg .tisr-meter[data-score="1"] span:nth-child(-n+1) { background: #f97316; }
.tisr-reg .tisr-meter[data-score="2"] span:nth-child(-n+2) { background: #eab308; }
.tisr-reg .tisr-meter[data-score="3"] span:nth-child(-n+3) { background: #22c55e; }
.tisr-reg .tisr-meter[data-score="4"] span { background: var(--tisr-ok); }

/* Honeypot */
.tisr-reg .tisr-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.tisr-reg .tisr-turnstile { min-height: 65px; margin: 6px 0 16px; }

/* Alerts */
.tisr-reg .tisr-alert {
	margin: 0 0 16px;
	padding: 12px 16px;
	border-left: 4px solid var(--tisr-brand);
	border-radius: 12px;
	background: var(--tisr-brand-soft);
	color: var(--tisr-ink);
	font-size: 14px;
	animation: tisr-rise .35s ease both;
}
.tisr-reg .tisr-alert[hidden] { display: none; }
.tisr-reg .tisr-alert--info { border-left-color: #0ea5e9; background: #f0f9ff; }
.tisr-reg .tisr-alert a { color: var(--tisr-brand); font-weight: 600; }

/* Button */
.tisr-reg .tisr-btn,
.tisr-reg .tisr-btn:visited {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	height: 54px;
	margin: 4px 0 0;
	padding: 0 24px;
	border: 0;
	border-radius: 12px;
	background: linear-gradient(135deg, var(--tisr-brand) 0%, var(--tisr-brand-dark) 100%);
	color: #fff;
	font-family: inherit;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: .01em;
	line-height: 1;
	text-decoration: none;
	text-transform: none;
	cursor: pointer;
	box-shadow: 0 14px 28px -14px var(--tisr-brand), inset 0 1px 0 rgba(255, 255, 255, .18);
	transition: transform .2s, box-shadow .2s, filter .2s;
}
.tisr-reg .tisr-btn:hover,
.tisr-reg .tisr-btn:focus { color: #fff; background: linear-gradient(135deg, var(--tisr-brand) 0%, var(--tisr-brand-dark) 100%); filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 18px 34px -14px var(--tisr-brand); }
.tisr-reg .tisr-btn:focus-visible { outline: 0; box-shadow: 0 0 0 4px var(--tisr-ring), 0 14px 28px -14px var(--tisr-brand); }
.tisr-reg .tisr-btn .tisr-spinner {
	display: none;
	width: 18px; height: 18px;
	border: 2.5px solid rgba(255, 255, 255, .35);
	border-top-color: #fff;
	border-radius: 50%;
	animation: tisr-spin .7s linear infinite;
}
.tisr-reg .tisr-btn.is-loading { pointer-events: none; filter: saturate(.9); }
.tisr-reg .tisr-btn.is-loading .tisr-spinner { display: inline-block; }

.tisr-reg .tisr-reg__alt { margin: 20px 0 0; color: var(--tisr-muted); font-size: 14.5px; text-align: center; }
.tisr-reg .tisr-reg__alt a { color: var(--tisr-brand); font-weight: 700; text-decoration: none; }
.tisr-reg .tisr-reg__alt a:hover { text-decoration: underline; }

/* Success / signed-in */
.tisr-reg .tisr-done { text-align: center; max-width: 460px; margin: 0 auto; animation: tisr-rise .5s cubic-bezier(.2, .7, .2, 1) both; }
.tisr-reg .tisr-done__icon {
	position: relative;
	display: grid;
	place-items: center;
	width: 84px; height: 84px;
	margin: 0 auto 20px;
	border-radius: 24px;
	background: linear-gradient(135deg, var(--tisr-ok), #15803d);
	color: #fff;
	box-shadow: 0 20px 40px -18px var(--tisr-ok);
	animation: tisr-pop .6s cubic-bezier(.2, 1.4, .4, 1) both .1s;
}
.tisr-reg .tisr-done__icon svg { width: 38px; height: 38px; }
.tisr-reg .tisr-done h2 { margin: 0 0 8px; color: var(--tisr-ink); font-family: inherit; font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.tisr-reg .tisr-done p { margin: 0 0 18px; }
.tisr-reg .tisr-progress { height: 6px; margin: 0 0 18px; overflow: hidden; border-radius: 6px; background: var(--tisr-line); }
.tisr-reg .tisr-progress span { display: block; height: 100%; width: 0; background: var(--tisr-ok); animation: tisr-bar 1.6s ease forwards; }
.tisr-reg--signedin { grid-template-columns: 1fr; }

/* ---------- Login shortcode ---------- */
.tisr-reg .tisr-view[hidden] { display: none !important; }
.tisr-reg .tisr-view { animation: tisr-rise .45s cubic-bezier(.2, .7, .2, 1) both; }
.tisr-reg .tisr-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 2px 0 16px; }
.tisr-reg .tisr-check { display: inline-flex; align-items: center; gap: 10px; margin: 0; color: var(--tisr-text); font-size: 14px; font-weight: 500; cursor: pointer; }
.tisr-reg .tisr-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--tisr-brand); cursor: pointer; }
.tisr-reg .tisr-linkbtn,
.tisr-reg .tisr-linkbtn:hover,
.tisr-reg .tisr-linkbtn:focus {
	display: inline;
	width: auto; height: auto;
	margin: 0; padding: 4px 0;
	border: 0;
	background: none;
	box-shadow: none;
	color: var(--tisr-brand);
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	text-transform: none;
	cursor: pointer;
}
.tisr-reg .tisr-linkbtn:hover { text-decoration: underline; }
.tisr-reg .tisr-linkbtn:disabled { color: var(--tisr-muted); text-decoration: none; cursor: default; }
.tisr-reg .tisr-sent { text-align: center; }
.tisr-reg .tisr-sent h2 { margin: 0 0 8px; color: var(--tisr-ink); font-family: inherit; font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.tisr-reg .tisr-sent__lead { margin: 0; }
.tisr-reg .tisr-sent__email { display: inline-block; margin: 8px 0 18px; padding: 8px 14px; border: 1px solid var(--tisr-line); border-radius: 10px; background: var(--tisr-field); color: var(--tisr-ink); font-weight: 700; word-break: break-all; }
.tisr-reg .tisr-sent__tips { margin: 0 0 22px; padding: 14px 16px 14px 36px; border-radius: 12px; background: var(--tisr-field); color: var(--tisr-muted); font-size: 13.5px; text-align: left; }
.tisr-reg .tisr-sent__tips li { margin: 4px 0; }
.tisr-reg .tisr-done__icon--brand { background: linear-gradient(135deg, var(--tisr-brand), var(--tisr-brand-dark)); box-shadow: 0 20px 40px -18px var(--tisr-brand); }
.tisr-reg .tisr-reg__card--natural { aspect-ratio: auto; background: #fff; }
.tisr-reg .tisr-reg__card--natural img { height: auto !important; }
.tisr-reg .tisr-reg__card--natural::after { display: none; }

/* ---------- Animations ---------- */
@keyframes tisr-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes tisr-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes tisr-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes tisr-shine { 0% { transform: translateX(-130%) skewX(-18deg); } 55%, 100% { transform: translateX(330%) skewX(-18deg); } }
@keyframes tisr-drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(30px, 24px) scale(1.12); } }
@keyframes tisr-spin { to { transform: rotate(360deg); } }
@keyframes tisr-pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes tisr-bar { to { width: 100%; } }
@keyframes tisr-kenburns { from { transform: scale(var(--tisr-zoom, 1)) translate(0, 0); } to { transform: scale(calc(var(--tisr-zoom, 1) * 1.05)) translate(-1%, -1%); } }
@keyframes tisr-angle { to { --tisr-angle: 360deg; } }
@keyframes tisr-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes tisr-sparkle { 0% { opacity: 0; transform: translateY(10px) scale(.4); } 30% { opacity: 1; transform: translateY(0) scale(1); } 70% { opacity: .8; } 100% { opacity: 0; transform: translateY(-26px) scale(.3); } }

@media (prefers-reduced-motion: reduce) {
	.tisr-reg *, .tisr-reg *::before, .tisr-reg *::after { animation: none !important; transition: none !important; }
	.tisr-reg .tisr-shine { display: none; }
}

/* ---------- Responsive (container + viewport fallback) ---------- */
@container (max-width: 860px) {
	.tisr-reg__art { padding: 0 12px 18px 0; }
}
@media (max-width: 900px) {
	.tisr-reg, .tisr-reg--form-left { grid-template-columns: 1fr; gap: 28px; }
	.tisr-reg--form-left .tisr-reg__panel { order: 0; }
	.tisr-reg .tisr-glow { border-radius: 23px; }
	.tisr-badge { left: 8px; bottom: 26px; }
	.tisr-reg .tisr-chip { right: 14px; top: -14px; }
	.tisr-reg__art { max-width: 640px; width: 100%; margin: 0 auto; padding: 18px 14px 24px 10px; }
	.tisr-reg__card { aspect-ratio: 16 / 10; border-radius: 20px; }
	.tisr-reg .tisr-reg__card--natural { aspect-ratio: auto; }
	.tisr-reg__float::before { inset: 12px -12px -12px 12px; border-radius: 22px; }
	.tisr-reg .tisr-orb--b { display: none; }
}
@media (max-width: 600px) {
	.tisr-reg .tisr-badge { display: none; }
}
@media (max-width: 480px) {
	.tisr-reg { padding: 16px 14px 56px; }
	.tisr-reg__card { border-radius: 16px; }
	.tisr-badge { left: 4px; bottom: 22px; padding: 7px 12px 7px 7px; font-size: 12.5px; }
	.tisr-reg .tisr-chip { font-size: 12px; padding: 6px 12px 6px 6px; }
	.tisr-reg .tisr-glow { border-radius: 19px; }
	.tisr-badge__icon { width: 26px; height: 26px; }
	.tisr-reg .tisr-reg__title { font-size: 27px; }
}
