/* ==========================================================================
   Bot Trading — the live look of the sign-in, register, e-mail verification and password pages
   --------------------------------------------------------------------------
   Loaded after login.css on those pages only (inc/site/head.php → ct_site_enqueue_auth_fx). Same layout as before — the BOT TRADING
   logo, ONE frosted-glass panel, the link underneath — but the photograph is replaced by a live trading scene drawn by
   assets/js/site-fx.js: a candlestick chart that scrolls and zooms in, a perspective grid, a market-watch board, a bot status card
   and a price tape. The panel gets the website's HUD look (corner brackets, a travelling light on its outline, cut-corner buttons).
   The colours come from Bot Trading → Website Content → Styling, so these pages follow the website; the corner style does too.
   Motion hangs on body.fe-fx-motion and the charts on body.fe-fx-charts (Styling → Futuristic effects switches them off);
   nothing moves for visitors who ask for reduced motion. The scene is decoration only: the prices are made up.
   ========================================================================== */

/* registered so the light on the panel's outline can travel smoothly (older browsers simply show a still outline) */
@property --fe-ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@property --ct-b   { syntax: '<length>'; inherits: false; initial-value: 11px; }

:root {
	/* fall-backs only — the Styling values are printed right after this file and win */
	--fe-primary: #3d7bff; --fe-accent: #22d3ee; --fe-link: #6ea2ff;
	--fe-primary-rgb: 61, 123, 255; --fe-accent-rgb: 34, 211, 238; --fe-text-rgb: 231, 236, 247; --fe-surface-rgb: 11, 20, 38;
	--fe-from-rgb: 47, 107, 255; --fe-via-rgb: 30, 167, 255; --fe-to-rgb: 33, 212, 242; --fe-bg-rgb: 5, 8, 15;
	--fe-bg: #05080f; --fe-bg-2: #0a1733; --fe-page-bg: linear-gradient(180deg, #05080f 0%, #0a1733 100%);
	--fe-grad: linear-gradient(135deg, #2f6bff 0%, #1ea7ff 55%, #21d4f2 100%);
	--fe-btn-bg: linear-gradient(135deg, #2f6bff 0%, #1ea7ff 55%, #21d4f2 100%); --fe-btn-text: #fff;
	--fe-btn-hover-bg: linear-gradient(135deg, #2f6bff 0%, #1ea7ff 55%, #21d4f2 100%); --fe-btn-hover-text: #fff;
	--fe-glow: rgba(47, 107, 255, .42);
	--fe-cut: 12px; --fe-brk: 14px;
	--fe-up: #19c98e; --fe-down: #ff5c7a;
	--fe-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* login.css keeps its colours in these tokens: point them at the website's theme */
body.ct-auth-fx {
	--primary-color: var(--fe-primary);
	--tm-blue: var(--fe-primary);
	--tm-blue-hi: var(--fe-link);
	--tm-cyan: var(--fe-accent);
	--tm-grad: var(--fe-grad);
	--tm-mono: var(--fe-mono);
	--tm-line: rgba(var(--fe-text-rgb), .16);
	--tm-line-hi: rgba(var(--fe-text-rgb), .30);
	--glass-border: rgba(var(--fe-accent-rgb), .3);
}

/* ---------- the stage behind everything ---------- */
body.ct-auth-fx .ct-login-wrapper { background: var(--fe-page-bg); padding-bottom: 64px; }
/* the photograph (only when one is set in Styling) is kept, but only as a faint texture under the live scene */
body.ct-auth-fx .ct-login-wrapper::before { background-image: none; opacity: .1; filter: grayscale(1) blur(3px) brightness(.8); }
/* edge shade, a faint grid and the theme's light: blue from the top right, cyan from the bottom left, a pool behind the panel */
body.ct-auth-fx .ct-login-wrapper::after {
	background:
		radial-gradient(ellipse at 50% 46%, transparent 52%, rgba(var(--fe-bg-rgb), .62) 100%),
		linear-gradient(rgba(var(--fe-accent-rgb), .04) 1px, transparent 1px) 0 0 / 56px 56px,
		linear-gradient(90deg, rgba(var(--fe-accent-rgb), .04) 1px, transparent 1px) 0 0 / 56px 56px,
		radial-gradient(800px 560px at 4% 108%, rgba(var(--fe-to-rgb), .2), transparent 65%),
		radial-gradient(900px 560px at 92% -8%, rgba(var(--fe-from-rgb), .36), transparent 65%),
		radial-gradient(760px 520px at 50% 36%, rgba(var(--fe-from-rgb), .2), transparent 66%);
}

.ct-stage { position: fixed; inset: 0; z-index: 2; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity 1.4s ease; }
.ct-stage.is-on { opacity: 1; }

/* the grid floor that runs towards the horizon */
.ct-stage__floor { position: absolute; left: -28%; right: -28%; bottom: 0; height: 40%; overflow: hidden; perspective: 420px; perspective-origin: 50% 0; -webkit-mask-image: linear-gradient(to top, #000 8%, transparent 92%); mask-image: linear-gradient(to top, #000 8%, transparent 92%); }
.ct-stage__floor i { position: absolute; left: 0; right: 0; bottom: 0; height: 220%; transform-origin: 50% 100%; transform: rotateX(66deg); background-image: linear-gradient(rgba(var(--fe-accent-rgb), .42) 1.5px, transparent 1.5px), linear-gradient(90deg, rgba(var(--fe-accent-rgb), .42) 1.5px, transparent 1.5px); background-size: 72px 72px; }
/* a slow beam of light that crosses the screen */
.ct-stage__scan { position: absolute; top: 0; bottom: 0; left: 0; width: 30vw; opacity: 0; background: linear-gradient(90deg, transparent, rgba(var(--fe-accent-rgb), .035) 60%, rgba(var(--fe-accent-rgb), .1) 98%, rgba(var(--fe-accent-rgb), .35) 100%); -webkit-mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent); mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent); transform: translateX(-100%); }

/* the candlestick chart; it is dimmed where the panel sits so the form stays easy to read */
.ct-stage__chart { position: absolute; left: 0; bottom: 34px; width: 100%; height: 76%; display: block; opacity: 0; transition: opacity 1.8s ease; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 34%), radial-gradient(ellipse 27% 52% at 50% 56%, rgba(0, 0, 0, .16), rgba(0, 0, 0, .16) 52%, #000 100%); mask-image: linear-gradient(180deg, transparent 0, #000 34%), radial-gradient(ellipse 27% 52% at 50% 56%, rgba(0, 0, 0, .16), rgba(0, 0, 0, .16) 52%, #000 100%); -webkit-mask-composite: source-in; mask-composite: intersect; }
.ct-stage__chart.is-live { opacity: 1; }

/* ---------- floating cards: market watch (left) and the bot (right) ---------- */
.ct-hud { --b: var(--fe-brk); position: absolute; width: 284px; padding: 15px 16px 12px; color: #dbe5f8; font: 500 12px/1.35 var(--fe-mono); letter-spacing: .01em; opacity: 0; transform: translateX(var(--from, -18px)); transition: opacity .9s ease .5s, transform .9s cubic-bezier(.22, .8, .3, 1);
	border: 1px solid transparent;
	border-image: linear-gradient(135deg, rgba(var(--fe-accent-rgb), .5), rgba(var(--fe-primary-rgb), .12) 45%, rgba(var(--fe-accent-rgb), .3)) 1;
	background:
		linear-gradient(var(--fe-accent), var(--fe-accent)) 0 0 / var(--b) 2px no-repeat,
		linear-gradient(var(--fe-accent), var(--fe-accent)) 0 0 / 2px var(--b) no-repeat,
		linear-gradient(var(--fe-accent), var(--fe-accent)) 100% 100% / var(--b) 2px no-repeat,
		linear-gradient(var(--fe-accent), var(--fe-accent)) 100% 100% / 2px var(--b) no-repeat,
		linear-gradient(180deg, rgba(23, 40, 78, .74), rgba(9, 16, 34, .86));
	-webkit-backdrop-filter: blur(10px) saturate(140%); backdrop-filter: blur(10px) saturate(140%);
	box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .85);
}
.ct-stage.is-on .ct-hud { opacity: 1; transform: translate(calc(var(--px, 0) * -10px), calc(var(--py, 0) * -6px)); }
.ct-hud--watch { left: clamp(24px, 3.6vw, 72px); top: clamp(110px, 18vh, 200px); }
.ct-hud--bot { --from: 18px; right: clamp(24px, 6.4vw, 120px); top: clamp(140px, 24vh, 250px); width: 300px; }

.ct-hud__head { display: flex; align-items: center; justify-content: space-between; margin: 0 0 8px; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--fe-accent); }
.ct-hud__pill { display: inline-flex; align-items: center; gap: 6px; font-style: normal; font-size: 9.5px; letter-spacing: .14em; color: #7ee8c1; }
.ct-hud__pill::before { content: ''; width: 6px; height: 6px; background: var(--fe-up); box-shadow: 0 0 0 0 rgba(25, 201, 142, .6); }
.ct-hud__sub { margin: 14px 0 2px; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: #8497bc; }

.ct-watch, .ct-orders { margin: 0; padding: 0; list-style: none; }
.ct-watch li { display: grid; grid-template-columns: 62px 50px minmax(0, 1fr) 62px; align-items: center; gap: 8px; padding: 7px 0; border-top: 1px solid rgba(var(--fe-text-rgb), .08); }
.ct-watch b { font-weight: 600; font-size: 11.5px; color: #fff; letter-spacing: .02em; }
.ct-watch canvas { display: block; width: 50px; height: 20px; }
.ct-watch .px { text-align: right; color: #e9f0ff; font-variant-numeric: tabular-nums; transition: color .5s ease; }
.ct-watch .chg { padding-left: 4px; text-align: right; font-style: normal; font-size: 11px; font-variant-numeric: tabular-nums; }
.ct-watch .px.is-up { color: #8dffd6; transition-duration: 0s; }
.ct-watch .px.is-down { color: #ff9db0; transition-duration: 0s; }
.ct-hud .up { color: var(--fe-up); }
.ct-hud .down { color: var(--fe-down); }

.ct-bot { display: flex; align-items: center; gap: 12px; }
.ct-bot__mark { flex: none; display: grid; place-items: center; width: 44px; height: 44px; background: var(--fe-grad); clip-path: polygon(calc(var(--fe-cut) * .7) 0, 100% 0, 100% calc(100% - var(--fe-cut) * .7), calc(100% - var(--fe-cut) * .7) 100%, 0 100%, 0 calc(var(--fe-cut) * .7)); }
.ct-bot__mark svg { display: block; width: 24px; height: 24px; fill: #fff; }
.ct-bot__txt { min-width: 0; }
.ct-bot__txt b { display: block; font: 700 13px/1.1 'Space Grotesk', 'IBM Plex Sans', system-ui, sans-serif; letter-spacing: .14em; color: #fff; }
.ct-bot__txt small { display: block; margin-top: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10.5px; color: #9fb2d6; }
.ct-bot__bar { height: 4px; margin: 12px 0 0; overflow: hidden; background: rgba(var(--fe-text-rgb), .1); }
.ct-bot__bar i { display: block; width: 0; height: 100%; background: var(--fe-grad); box-shadow: 0 0 12px var(--fe-glow); transition: width 1s linear; }
.ct-orders li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid rgba(var(--fe-text-rgb), .08); }
.ct-orders em { padding: 2px 0; text-align: center; font-style: normal; font-size: 9.5px; letter-spacing: .1em; }
.ct-orders em.buy { color: var(--fe-up); background: rgba(25, 201, 142, .14); }
.ct-orders em.sell { color: var(--fe-down); background: rgba(255, 92, 122, .14); }
.ct-orders b { font-weight: 600; font-size: 11.5px; color: #fff; }
.ct-orders li.is-new { animation: ct-new 1.4s ease-out; }
.ct-pnl { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; padding-top: 10px; border-top: 1px solid rgba(var(--fe-text-rgb), .08); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: #8497bc; }
.ct-pnl b { margin-left: 8px; font-size: 14px; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.ct-pnl canvas { display: block; width: 84px; height: 26px; }

/* ---------- the price tape along the bottom ---------- */
.ct-tape { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 34px; display: flex; pointer-events: none; opacity: 0; transition: opacity 1.4s ease .6s; align-items: center; overflow: hidden; border-top: 1px solid rgba(var(--fe-accent-rgb), .16); background: linear-gradient(180deg, rgba(var(--fe-bg-rgb), .45), rgba(var(--fe-bg-rgb), .82)); font: 500 11.5px/1 var(--fe-mono); color: #aab9d8; }
.ct-tape.is-on { opacity: 1; }
.ct-tape__view { flex: 1; min-width: 0; overflow: hidden; display: flex; align-items: center; }
.ct-tape__track { display: flex; flex: none; gap: 34px; padding-right: 34px; white-space: nowrap; }
.ct-tape b { margin-right: 8px; color: #fff; font-weight: 600; }
.ct-tape em { margin-right: 8px; font-style: normal; font-variant-numeric: tabular-nums; }
.ct-tape__track i { font-style: normal; font-variant-numeric: tabular-nums; }
.ct-tape .up { color: var(--fe-up); }
.ct-tape .down { color: var(--fe-down); }

/* ---------- the logo: the same robot mark as the website's header ---------- */
body.ct-auth-fx .ct-login-wrapper .ct-logo { filter: drop-shadow(0 0 16px rgba(var(--fe-from-rgb), .42)); }
html body.ct-auth-fx .ct-login-wrapper .ct-logo { --k: .84; }
html body.ct-auth-fx .ct-login-wrapper .ct-logo::before {
	content: '' !important;
	font-size: 0;
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='%23fff'%3E%3Ccircle cx='12' cy='3.4' r='1.6'/%3E%3Crect x='11.1' y='4.4' width='1.8' height='2.8'/%3E%3Crect x='1.2' y='10.2' width='2.2' height='5' rx='1.1'/%3E%3Crect x='20.6' y='10.2' width='2.2' height='5' rx='1.1'/%3E%3Cpath fill-rule='evenodd' d='M7.6 6.4h8.8a3.6 3.6 0 0 1 3.6 3.6v5.4a3.6 3.6 0 0 1-3.6 3.6H7.6A3.6 3.6 0 0 1 4 15.4V10a3.6 3.6 0 0 1 3.6-3.6zM9 10.5a1.8 1.8 0 1 0 0 3.6 1.8 1.8 0 0 0 0-3.6zm6 0a1.8 1.8 0 1 0 0 3.6 1.8 1.8 0 0 0 0-3.6zM9.4 16.2a.75.75 0 0 0 0 1.5h5.2a.75.75 0 0 0 0-1.5H9.4z'/%3E%3C/g%3E%3C/svg%3E") center / 55% no-repeat,
		var(--fe-grad);
	box-shadow: none;
	clip-path: polygon(calc(var(--fe-cut) * var(--k)) 0, 100% 0, 100% calc(100% - var(--fe-cut) * var(--k)), calc(100% - var(--fe-cut) * var(--k)) 100%, 0 100%, 0 calc(var(--fe-cut) * var(--k)));
}
html body.ct-auth-fx .ct-login-wrapper .ct-logo::after { letter-spacing: .12em; }

/* ---------- the glass panel: HUD brackets, a light that travels round its outline, a bright line along the top ---------- */
body.ct-auth-fx .ct-login-card::before {
	--b: calc(var(--fe-brk) * 1.6);
	--hud-ring: linear-gradient(135deg, rgba(var(--fe-accent-rgb), .55), rgba(var(--fe-primary-rgb), .14) 42%, rgba(var(--fe-accent-rgb), .36));
	border: 1px solid transparent;
	border-image: var(--hud-ring) 1;
	background:
		linear-gradient(var(--fe-accent), var(--fe-accent)) 0 0 / var(--b) 2px no-repeat,
		linear-gradient(var(--fe-accent), var(--fe-accent)) 0 0 / 2px var(--b) no-repeat,
		linear-gradient(var(--fe-accent), var(--fe-accent)) 100% 100% / var(--b) 2px no-repeat,
		linear-gradient(var(--fe-accent), var(--fe-accent)) 100% 100% / 2px var(--b) no-repeat,
		linear-gradient(90deg, var(--fe-primary) 0%, var(--fe-accent) 38%, rgba(var(--fe-accent-rgb), 0) 100%) 0 0 / 100% 2px no-repeat,
		linear-gradient(180deg, rgba(48, 78, 138, .38) 0%, rgba(12, 22, 46, .54) 55%, rgba(8, 15, 32, .66) 100%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 40px 90px -30px rgba(0, 0, 0, .85);
}
/* a small status line above each heading (the verify step gets a shield instead, below) */
body.ct-auth-fx .ct-login-header h1::before { content: '● SECURE ACCESS'; content: '● SECURE ACCESS' / ''; display: block; margin: 0 0 14px; font: 500 10.5px/1 var(--fe-mono); letter-spacing: .28em; text-transform: uppercase; color: var(--fe-accent); }
body.ct-auth-fx #register-section .ct-login-header h1::before { content: '● NEW ACCOUNT'; content: '● NEW ACCOUNT' / ''; }
body.ct-auth-fx .ct-login-header h1 { padding-top: 34px; }
body.ct-auth-fx .ct-login-header p::after { margin-top: 26px; }

/* ---------- fields ---------- */
body.ct-auth-fx .ct-input-wrapper input { background: rgba(4, 8, 16, .6); border-color: rgba(var(--fe-text-rgb), .22); }
body.ct-auth-fx .ct-input-wrapper input:hover { border-color: rgba(var(--fe-accent-rgb), .55); }
body.ct-auth-fx .ct-input-wrapper input:focus { background: rgba(4, 8, 16, .78); border-color: var(--fe-accent); box-shadow: inset 2px 0 0 var(--fe-accent), 0 0 0 3px rgba(var(--fe-accent-rgb), .14), 0 0 28px -8px rgba(var(--fe-accent-rgb), .6); }
body.ct-auth-fx .ct-input-wrapper:focus-within i { color: var(--fe-accent); }
body.ct-auth-fx .ct-form-group label { color: #9fb0d2; }
body.ct-auth-fx .ct-checkbox input { accent-color: var(--fe-accent); }
body.ct-auth-fx .ct-forgot-link, body.ct-auth-fx .ct-login-footer a { color: var(--fe-link); border-color: rgba(var(--fe-accent-rgb), .45); }
body.ct-auth-fx .ct-forgot-link:hover, body.ct-auth-fx .ct-login-footer a:hover { color: #fff; border-color: #fff; }
html body.ct-auth-fx .ct-captcha-img { border-color: rgba(var(--fe-text-rgb), .22); }
html body.ct-auth-fx .ct-captcha-refresh { border-color: rgba(var(--fe-accent-rgb), .6); color: var(--fe-accent); }
html body.ct-auth-fx .ct-captcha-refresh:hover { background: rgba(var(--fe-accent-rgb), .16); border-color: var(--fe-accent); }

/* ---------- the main button: cut corners and a light that glides across it ---------- */
html body.ct-auth-fx .ct-login-wrapper .ct-btn-primary {
	overflow: hidden;
	clip-path: polygon(var(--fe-cut) 0, 100% 0, 100% calc(100% - var(--fe-cut)), calc(100% - var(--fe-cut)) 100%, 0 100%, 0 var(--fe-cut));
	background: var(--fe-btn-bg);
	color: var(--fe-btn-text);
	font-family: 'Space Grotesk', 'IBM Plex Sans', system-ui, sans-serif;
	font-size: 13.5px;
	letter-spacing: .1em;
	text-transform: uppercase;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), inset 0 0 26px rgba(255, 255, 255, .06);
}
html body.ct-auth-fx .ct-login-wrapper .ct-btn-primary::after { content: ''; position: absolute; top: 0; bottom: 0; left: -45%; width: 32%; pointer-events: none; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .34), transparent); transform: skewX(-18deg); }
html body.ct-auth-fx .ct-login-wrapper .ct-btn-primary:hover { background: var(--fe-btn-hover-bg); color: var(--fe-btn-hover-text); filter: brightness(1.12); transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .34), inset 0 0 30px rgba(255, 255, 255, .1); }
html body.ct-auth-fx .ct-login-wrapper .ct-btn-primary:focus-visible { outline: 2px solid var(--fe-accent); outline-offset: 3px; }

/* ---------- the "Verify Email" step ---------- */
/* a shield badge, with a ring that pulses round it */
body.ct-auth-fx #verify-section .ct-login-header h1::before { content: '\f3ed'; content: '\f3ed' / ''; display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 18px; font: 900 22px/1 'Font Awesome 6 Free', 'Font Awesome 5 Free', sans-serif; letter-spacing: 0; color: #fff; background: var(--fe-grad); clip-path: polygon(calc(var(--fe-cut) * .85) 0, 100% 0, 100% calc(100% - var(--fe-cut) * .85), calc(100% - var(--fe-cut) * .85) 100%, 0 100%, 0 calc(var(--fe-cut) * .85)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); text-transform: none; }
body.ct-auth-fx #verify-section .ct-login-header h1::after { content: ''; position: absolute; top: 28px; left: 50%; width: 56px; height: 56px; margin-left: -28px; border: 1px solid rgba(var(--fe-accent-rgb), .55); pointer-events: none; }
body.ct-auth-fx #verify-section .ct-login-header h1 { padding-top: 28px; }
body.ct-auth-fx #verify-section .ct-login-header p { color: #b9c6e2; }
/* the code field: big, monospaced and evenly spaced like a one-time code */
body.ct-auth-fx #otp_code { padding: 0 20px 0 calc(46px + .5em); text-align: center; font: 600 26px/1 var(--fe-mono); letter-spacing: .5em; color: #fff; }
body.ct-auth-fx #otp_code::placeholder { font: 400 14px/1 var(--tm-body); letter-spacing: .04em; }
body.ct-auth-fx #verify-section .ct-form-group label::before { content: '■ '; color: var(--fe-accent); font-size: 8px; vertical-align: 1px; }

/* ---------- "Back to Home": the last thing on the page, with HUD brackets that grow when it is pointed at ---------- */
body.ct-auth-fx .ct-back-wrap { margin-top: 20px; }
body.ct-auth-fx .ct-back {
	--ct-b: calc(var(--fe-brk) * .8);
	color: #dbe5f8;
	font-family: 'Space Grotesk', 'IBM Plex Sans', system-ui, sans-serif;
	letter-spacing: .12em;
	border: 1px solid rgba(var(--fe-text-rgb), .22);
	background:
		linear-gradient(var(--fe-accent), var(--fe-accent)) 0 0 / var(--ct-b) 2px no-repeat,
		linear-gradient(var(--fe-accent), var(--fe-accent)) 0 0 / 2px var(--ct-b) no-repeat,
		linear-gradient(var(--fe-accent), var(--fe-accent)) 100% 100% / var(--ct-b) 2px no-repeat,
		linear-gradient(var(--fe-accent), var(--fe-accent)) 100% 100% / 2px var(--ct-b) no-repeat,
		rgba(6, 12, 26, .62);
	transition: color .16s ease, border-color .16s ease, box-shadow .2s ease, --ct-b .25s ease;
}
body.ct-auth-fx .ct-back svg { stroke: var(--fe-accent); }
body.ct-auth-fx .ct-back:hover { --ct-b: calc(var(--fe-brk) * 1.6); color: #fff; border-color: var(--fe-accent); box-shadow: 0 0 26px -8px rgba(var(--fe-accent-rgb), .6), inset 0 0 22px rgba(var(--fe-accent-rgb), .08); }
body.ct-auth-fx .ct-back:focus-visible { outline-color: var(--fe-accent); }

/* ---------- messages ---------- */
body.ct-auth-fx .ct-message.error, body.ct-auth-fx .ct-message.success { animation: ct-rise .35s ease-out; }

/* ---------- motion (switched off by Styling → Futuristic effects → Glow & motion effects) ---------- */
@keyframes ct-floor { from { transform: rotateX(66deg) translateY(0); } to { transform: rotateX(66deg) translateY(72px); } }
@keyframes ct-scan { 0% { transform: translateX(-100%); opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { transform: translateX(310%); opacity: 0; } }
@keyframes ct-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }
@keyframes ct-pulse { 0% { box-shadow: 0 0 0 0 rgba(25, 201, 142, .55); } 70% { box-shadow: 0 0 0 7px rgba(25, 201, 142, 0); } 100% { box-shadow: 0 0 0 0 rgba(25, 201, 142, 0); } }
@keyframes ct-tape { to { transform: translateX(-25%); } }
@keyframes ct-ang { to { --fe-ang: 360deg; } }
@keyframes ct-sheen { 0%, 66% { left: -45%; } 100% { left: 135%; } }
@keyframes ct-new { 0% { background: rgba(var(--fe-accent-rgb), .22); } 100% { background: transparent; } }
@keyframes ct-ring { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes ct-rise { from { transform: translateY(6px); } to { transform: none; } }
@keyframes ct-glow { 0%, 100% { filter: drop-shadow(0 0 14px rgba(var(--fe-from-rgb), .34)); } 50% { filter: drop-shadow(0 0 28px rgba(var(--fe-accent-rgb), .6)); } }

body.fe-fx-motion .ct-stage__floor i { animation: ct-floor 5.5s linear infinite; }
body.fe-fx-motion .ct-stage__scan { animation: ct-scan 12s linear 2s infinite; }
body.fe-fx-motion .ct-hud { animation: ct-float 8s ease-in-out infinite; }
body.fe-fx-motion .ct-hud--bot { animation-delay: -3.2s; }
body.fe-fx-motion .ct-hud__pill::before { animation: ct-pulse 2s ease-out infinite; }
body.fe-fx-motion .ct-login-wrapper .ct-logo { animation: ct-glow 4.5s ease-in-out infinite; }
body.fe-fx-motion .ct-tape__track { animation: ct-tape 75s linear infinite; }
body.fe-fx-motion .ct-login-card::before { --hud-ring: conic-gradient(from var(--fe-ang), rgba(var(--fe-accent-rgb), .95), rgba(var(--fe-from-rgb), .16) 22%, rgba(var(--fe-to-rgb), .8) 50%, rgba(var(--fe-from-rgb), .16) 78%, rgba(var(--fe-accent-rgb), .95)); animation: ct-ang 9s linear infinite; }
body.fe-fx-motion .ct-login-wrapper .ct-btn-primary::after { animation: ct-sheen 5.5s ease-in-out infinite; }
body.fe-fx-motion #verify-section .ct-login-header h1::after { animation: ct-ring 2.4s ease-out infinite; }

/* ---------- smaller screens ---------- */
/* the two cards need room on both sides of the 480 px panel */
@media (max-width: 1299px), (max-height: 619px) {
	.ct-hud { display: none; }
}
@media (max-width: 759px) {
	.ct-tape { height: 30px; font-size: 11px; }
	.ct-stage__chart { bottom: 30px; height: 66%; }
	body.ct-auth-fx .ct-login-wrapper { padding-bottom: 58px; }
	.ct-stage__floor { height: 32%; }
	body.ct-auth-fx .ct-login-card::before { --b: calc(var(--fe-brk) * 1.15); -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%); }
}
@media (max-width: 560px) {
	html body.ct-auth-fx .ct-login-wrapper .ct-logo { --k: .72; }
	body.ct-auth-fx .ct-login-header h1 { padding-top: 28px; }
	body.ct-auth-fx #verify-section .ct-login-header h1 { padding-top: 24px; }
	body.ct-auth-fx #verify-section .ct-login-header h1::after { top: 24px; }
	body.ct-auth-fx #otp_code { font-size: 22px; letter-spacing: .4em; padding-left: calc(46px + .4em); }
}

@media (prefers-reduced-motion: reduce) {
	.ct-back, .ct-back svg, .ct-login-wrapper .ct-logo, .ct-tape, .ct-tape *, .ct-stage, .ct-stage *, .ct-hud, .ct-login-card::before, .ct-login-wrapper .ct-btn-primary::after, #verify-section .ct-login-header h1::after, .ct-message { animation: none !important; transition: none !important; }
	.ct-stage, .ct-tape { opacity: 1; }
	.ct-hud { opacity: 1; transform: none; }
}
