/* ==========================================================================
   Cabana Admin Studio v3.7 — Clube dos Cabaneiros Login Portal (/cabaneiros)
   Same Cabana Visual DNA, Distinct Welcoming Sanctuary + Rising Campfire Embers
   100% Pure GPU CSS · Zero External Fonts · Zero Libraries
   ========================================================================== */

:root {
	--cb-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
	--cb-bg-1: #070C1C;
	--cb-bg-2: #171D3F;
	--cb-glow-1: rgba(255, 122, 0, 0.30);
	--cb-glow-2: rgba(139, 92, 246, 0.24);
	--cb-accent: #FF7A00;
	--cb-accent-2: #FFA940;
	--cb-text: #F8FAFC;
	--cb-muted: #94A3B8;
	--cb-panel: rgba(8, 13, 27, 0.78);
	--cb-border: rgba(255, 255, 255, 0.12);
	--cb-border-strong: rgba(255, 255, 255, 0.20);
	--cb-input-bg: rgba(15, 23, 42, 0.76);
	--mx: 70%;
	--my: 35%;
}

/* 3 Exclusive Cabaneiros Atmospheres */
body.cb-atmo-fogueira {
	--cb-bg-1: #070C1C;
	--cb-bg-2: #1A1F42;
	--cb-glow-1: rgba(255, 122, 0, 0.32);
	--cb-glow-2: rgba(99, 102, 241, 0.24);
}

body.cb-atmo-sala-precisa {
	--cb-bg-1: #0D071E;
	--cb-bg-2: #2D155F;
	--cb-glow-1: rgba(168, 85, 247, 0.34);
	--cb-glow-2: rgba(255, 140, 0, 0.28);
}

body.cb-atmo-floresta {
	--cb-bg-1: #041310;
	--cb-bg-2: #0F372C;
	--cb-glow-1: rgba(16, 185, 129, 0.30);
	--cb-glow-2: rgba(255, 138, 0, 0.28);
}

* {
	box-sizing: border-box;
}

body.cb-body {
	margin: 0;
	padding: 24px;
	min-height: 100vh;
	font-family: var(--cb-font);
	color: var(--cb-text);
	background: radial-gradient(circle at 28% 40%, var(--cb-bg-2) 0%, var(--cb-bg-1) 66%, #03060E 100%);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	overflow-x: hidden;
	position: relative;
	-webkit-font-smoothing: antialiased;
}

/* Ambient Orbs + Rising Golden Campfire Embers */
.cb-ambient {
	position: fixed;
	inset: 0;
	pointer-events: none;
	overflow: hidden;
	z-index: 0;
}

.cb-orb {
	position: absolute;
	border-radius: 50%;
	filter: blur(90px);
	opacity: 0.65;
	will-change: transform;
}

.cb-orb-1 {
	width: 540px;
	height: 540px;
	top: -150px;
	left: -100px;
	background: var(--cb-glow-1);
	animation: cbDriftA 15s ease-in-out infinite alternate;
}

.cb-orb-2 {
	width: 480px;
	height: 480px;
	bottom: -150px;
	right: -90px;
	background: var(--cb-glow-2);
	animation: cbDriftB 18s ease-in-out infinite alternate;
}

.cb-embers {
	position: absolute;
	inset: 0;
}

.cb-embers span {
	position: absolute;
	bottom: -14px;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: #FFA940;
	box-shadow: 0 0 10px 2px rgba(255, 138, 0, 0.65);
	opacity: 0;
	will-change: transform, opacity;
	animation: cbRise 9s linear infinite;
}

.cb-embers span:nth-child(1)  { left: 8%;  animation-duration: 9.5s;  animation-delay: 0.2s; }
.cb-embers span:nth-child(2)  { left: 16%; animation-duration: 12s;   animation-delay: 2.1s; width: 3px; height: 3px; }
.cb-embers span:nth-child(3)  { left: 25%; animation-duration: 8.5s;  animation-delay: 4.3s; }
.cb-embers span:nth-child(4)  { left: 34%; animation-duration: 11s;   animation-delay: 1.0s; background: #FDE047; }
.cb-embers span:nth-child(5)  { left: 45%; animation-duration: 10.2s; animation-delay: 3.4s; width: 3px; height: 3px; }
.cb-embers span:nth-child(6)  { left: 54%; animation-duration: 13s;   animation-delay: 0.7s; }
.cb-embers span:nth-child(7)  { left: 63%; animation-duration: 8.8s;  animation-delay: 5.0s; background: #FDE047; }
.cb-embers span:nth-child(8)  { left: 71%; animation-duration: 11.4s; animation-delay: 2.7s; }
.cb-embers span:nth-child(9)  { left: 78%; animation-duration: 9.2s;  animation-delay: 1.5s; width: 5px; height: 5px; }
.cb-embers span:nth-child(10) { left: 85%; animation-duration: 12.6s; animation-delay: 4.0s; }
.cb-embers span:nth-child(11) { left: 91%; animation-duration: 9.8s;  animation-delay: 0.9s; width: 3px; height: 3px; }
.cb-embers span:nth-child(12) { left: 96%; animation-duration: 10.8s; animation-delay: 3.1s; }

/* Admin Preview Bar */
.cb-preview-bar {
	position: relative;
	z-index: 5;
	width: 100%;
	max-width: 1060px;
	margin-bottom: 14px;
	padding: 10px 16px;
	border-radius: 12px;
	background: rgba(255, 122, 0, 0.16);
	border: 1px solid rgba(255, 122, 0, 0.45);
	color: #FFF7ED;
	font-size: 13px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.cb-preview-bar a {
	color: #FDBA74;
	font-weight: 700;
	text-decoration: none;
}

.cb-preview-bar a:hover {
	text-decoration: underline;
}

/* Main Framed Shell */
.cb-shell {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 1060px;
	animation: cbEnter 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.cb-frame {
	position: relative;
	display: grid;
	grid-template-columns: 0.92fr 1.08fr;
	min-height: 620px;
	border-radius: 26px;
	border: 1px solid var(--cb-border);
	background:
		radial-gradient(460px circle at var(--mx) var(--my), rgba(255, 138, 0, 0.09), transparent 65%),
		linear-gradient(145deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.015) 100%);
	box-shadow: 0 34px 86px rgba(0, 0, 0, 0.56), inset 0 1px 0 rgba(255, 255, 255, 0.08);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	overflow: hidden;
}

/* Left Column: Member Auth Card */
.cb-auth-col {
	background: var(--cb-panel);
	border-right: 1px solid rgba(255, 255, 255, 0.08);
	padding: 34px 40px 28px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.cb-auth-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 22px;
}

.cb-brand-chip {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: #FFFFFF;
}

.cb-brand-chip img {
	width: 36px;
	height: 36px;
	display: block;
	filter: drop-shadow(0 0 12px rgba(255, 122, 0, 0.42));
}

.cb-brand-chip strong {
	display: block;
	font-size: 15px;
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.01em;
}

.cb-brand-chip small {
	display: block;
	font-size: 11.5px;
	color: var(--cb-muted);
}

.cb-member-pill {
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 5px 10px;
	border-radius: 999px;
	background: rgba(255, 122, 0, 0.16);
	border: 1px solid rgba(255, 122, 0, 0.38);
	color: var(--cb-accent-2);
}

/* Mode Tabs */
.cb-mode-tabs {
	display: flex;
	gap: 4px;
	padding: 4px;
	border-radius: 11px;
	background: rgba(15, 23, 42, 0.72);
	border: 1px solid var(--cb-border);
	margin-bottom: 22px;
}

.cb-mode-tab {
	flex: 1;
	text-align: center;
	text-decoration: none;
	padding: 8px 10px;
	border-radius: 8px;
	font-size: 12.5px;
	font-weight: 700;
	color: var(--cb-muted);
	transition: background 0.16s ease, color 0.16s ease;
}

.cb-mode-tab:hover {
	color: #FFFFFF;
}

.cb-mode-tab.is-active {
	background: linear-gradient(135deg, rgba(255, 106, 0, 0.22), rgba(255, 138, 0, 0.14));
	color: var(--cb-accent-2);
	box-shadow: inset 0 0 0 1px rgba(255, 122, 0, 0.36);
}

/* Notices */
.cb-notices {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 16px;
}

.cb-notice {
	padding: 11px 13px;
	border-radius: 10px;
	font-size: 13px;
	line-height: 1.45;
	border: 1px solid var(--cb-border-strong);
	border-left-width: 4px;
}

.cb-notice-error {
	background: rgba(127, 29, 29, 0.38);
	border-left-color: #EF4444;
	color: #FEE2E2;
}

.cb-notice-success {
	background: rgba(6, 78, 59, 0.42);
	border-left-color: #10B981;
	color: #D1FAE5;
}

/* Form Elements */
.cb-form-head {
	margin-bottom: 18px;
}

.cb-form-head h1 {
	margin: 0 0 6px;
	font-size: 24px;
	font-weight: 800;
	letter-spacing: -0.025em;
	color: #FFFFFF;
}

.cb-form-head p {
	margin: 0;
	font-size: 13.5px;
	line-height: 1.5;
	color: var(--cb-muted);
}

.cb-hp {
	position: absolute;
	left: -9999px;
	top: -9999px;
	height: 0;
	overflow: hidden;
	opacity: 0;
}

.cb-field {
	margin-bottom: 15px;
}

.cb-field-row-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 6px;
}

.cb-field label {
	display: block;
	font-size: 12.5px;
	font-weight: 600;
	color: #CBD5E1;
	margin-bottom: 6px;
}

.cb-field-row-head label {
	margin-bottom: 0;
}

.cb-inline-link {
	font-size: 12px;
	font-weight: 600;
	color: var(--cb-accent-2);
	text-decoration: none;
}

.cb-inline-link:hover {
	text-decoration: underline;
}

.cb-field input[type="text"],
.cb-field input[type="email"],
.cb-field input[type="password"] {
	width: 100%;
	height: 46px;
	padding: 0 14px;
	border-radius: 11px;
	border: 1px solid var(--cb-border-strong);
	background: var(--cb-input-bg);
	color: #FFFFFF;
	font-family: var(--cb-font);
	font-size: 14.5px;
	transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.cb-field input:focus {
	outline: none;
	border-color: var(--cb-accent);
	background: rgba(15, 23, 42, 0.96);
	box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.25);
}

.cb-field input::placeholder {
	color: #64748B;
}

.cb-pass-wrap {
	position: relative;
}

.cb-pass-wrap input {
	padding-right: 44px;
}

.cb-eye-btn {
	position: absolute;
	top: 50%;
	right: 8px;
	transform: translateY(-50%);
	width: 32px;
	height: 32px;
	border: none;
	border-radius: 7px;
	background: transparent;
	color: #94A3B8;
	font-size: 15px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: color 0.15s ease, background 0.15s ease;
}

.cb-eye-btn:hover,
.cb-eye-btn.is-shown {
	color: var(--cb-accent-2);
	background: rgba(255, 255, 255, 0.06);
}

/* Password Strength Bar */
.cb-strength {
	margin-top: 7px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.cb-strength-bar {
	flex: 1;
	height: 5px;
	border-radius: 99px;
	background: rgba(255, 255, 255, 0.10);
	overflow: hidden;
}

.cb-strength-bar i {
	display: block;
	width: 0%;
	height: 100%;
	border-radius: 99px;
	transition: width 0.22s ease, background 0.22s ease;
}

.cb-strength small {
	font-size: 11.5px;
	color: var(--cb-muted);
	white-space: nowrap;
}

/* Remember Checkbox */
.cb-check {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin: 2px 0 18px;
	font-size: 13px;
	color: #CBD5E1;
	cursor: pointer;
}

.cb-check input[type="checkbox"] {
	width: 17px;
	height: 17px;
	accent-color: var(--cb-accent);
	cursor: pointer;
}

/* Shimmer CTA Button */
.cb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	width: 100%;
	height: 46px;
	padding: 0 20px;
	border-radius: 11px;
	border: none;
	font-family: var(--cb-font);
	font-size: 14.5px;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.16s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.cb-btn-primary {
	background: linear-gradient(135deg, #FF6A00 0%, #FF9500 100%);
	color: #FFFFFF;
	box-shadow: 0 10px 26px rgba(255, 122, 0, 0.34);
	position: relative;
	overflow: hidden;
}

.cb-btn-shimmer::after {
	content: "";
	position: absolute;
	top: 0;
	left: -120%;
	width: 65%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
	transform: skewX(-20deg);
	animation: cbShimmer 4.5s ease-in-out infinite;
}

.cb-btn-primary:hover {
	transform: translateY(-1px);
	box-shadow: 0 14px 32px rgba(255, 122, 0, 0.46);
	filter: brightness(1.06);
}

.cb-btn-ghost {
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid var(--cb-border-strong);
	color: #E2E8F0;
}

.cb-btn-ghost:hover {
	border-color: var(--cb-accent);
	color: #FFFFFF;
}

.cb-btn-google {
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid var(--cb-border-strong);
	color: #FFFFFF;
}

.cb-btn-google:hover {
	background: rgba(255, 255, 255, 0.14);
	border-color: rgba(255, 255, 255, 0.35);
}

.cb-divider {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 18px 0 14px;
	font-size: 12px;
	color: var(--cb-muted);
}

.cb-divider::before,
.cb-divider::after {
	content: "";
	flex: 1;
	height: 1px;
	background: rgba(255, 255, 255, 0.10);
}

.cb-back-link {
	display: block;
	text-align: center;
	margin-top: 14px;
	font-size: 13px;
	color: var(--cb-muted);
	text-decoration: none;
}

.cb-back-link:hover {
	color: var(--cb-accent-2);
}

/* Logged-In Welcome Card */
.cb-logged-box {
	text-align: center;
	padding: 18px 4px;
}

.cb-avatar-ring {
	width: 68px;
	height: 68px;
	margin: 0 auto 14px;
	border-radius: 50%;
	background: linear-gradient(135deg, #FF6A00, #FBBF24);
	color: #090E1A;
	font-size: 24px;
	font-weight: 800;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 0 28px rgba(255, 122, 0, 0.38);
}

.cb-logged-box h1 {
	margin: 0 0 8px;
	font-size: 24px;
	font-weight: 800;
}

.cb-logged-box p {
	margin: 0 0 22px;
	color: var(--cb-muted);
	font-size: 14px;
	line-height: 1.5;
}

.cb-logged-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

/* Auth Footer */
.cb-auth-footer {
	margin-top: 24px;
	padding-top: 16px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-size: 12.5px;
	color: var(--cb-muted);
}

.cb-auth-footer a {
	color: var(--cb-muted);
	text-decoration: none;
}

.cb-auth-footer a:hover {
	color: var(--cb-accent-2);
}

/* Right Column: Animated Cabana Sanctuary Showcase */
.cb-stage-col {
	padding: 42px 44px 36px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	position: relative;
}

.cb-kicker {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.14em;
	color: var(--cb-accent-2);
	margin-bottom: 14px;
}

.cb-kicker-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--cb-accent);
	box-shadow: 0 0 10px var(--cb-accent);
	animation: cbPulse 2.6s ease-in-out infinite;
}

.cb-stage-title {
	margin: 0 0 12px;
	font-size: clamp(26px, 3vw, 35px);
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -0.03em;
	color: #FFFFFF;
}

.cb-stage-sub {
	margin: 0;
	font-size: 14.5px;
	line-height: 1.55;
	color: rgba(226, 232, 240, 0.80);
	max-width: 440px;
}

/* Cabana Sanctuary SVG Stage */
.cb-sanctuary {
	position: relative;
	width: 100%;
	max-width: 340px;
	margin: 12px auto;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #FFFFFF;
}

.cb-sanctuary-aura {
	position: absolute;
	width: 210px;
	height: 210px;
	border-radius: 50%;
	background: radial-gradient(circle, var(--cb-glow-1) 0%, transparent 72%);
	animation: cbBreath 5.2s ease-in-out infinite;
}

.cb-sanctuary-svg {
	position: relative;
	z-index: 1;
	width: 100%;
	height: auto;
	display: block;
}

.cb-ring-spin {
	transform-origin: 180px 144px;
	animation: cbSpin 36s linear infinite;
}

.cb-door-glow {
	animation: cbDoorPulse 3.8s ease-in-out infinite;
}

.cb-moon {
	animation: cbFloat 6.5s ease-in-out infinite;
}

.cb-smoke-1 { animation: cbSmoke 3.4s ease-out infinite; }
.cb-smoke-2 { animation: cbSmoke 3.4s ease-out 1.4s infinite; }

.cb-spark {
	transform-box: fill-box;
	transform-origin: center;
}
.cb-spark-1 { animation: cbTwinkle 3.1s ease-in-out infinite; }
.cb-spark-2 { animation: cbTwinkle 4.0s ease-in-out 0.8s infinite; }
.cb-spark-3 { animation: cbTwinkle 3.5s ease-in-out 1.6s infinite; }

.cb-floating-logo {
	position: absolute;
	top: 10px;
	right: 12px;
	z-index: 2;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: rgba(10, 16, 32, 0.86);
	border: 1px solid rgba(255, 138, 0, 0.45);
	box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4), 0 0 18px rgba(255, 122, 0, 0.25);
	display: flex;
	align-items: center;
	justify-content: center;
	animation: cbFloat 5.5s ease-in-out infinite;
}

.cb-floating-logo img {
	width: 36px;
	height: 36px;
	display: block;
}

/* Perks Badges */
.cb-perks {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
}

.cb-perk {
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 9px 10px;
	border-radius: 11px;
	background: rgba(255, 255, 255, 0.045);
	border: 1px solid rgba(255, 255, 255, 0.09);
	font-size: 11.5px;
	font-weight: 600;
	line-height: 1.3;
	color: #E2E8F0;
}

.cb-perk-ico {
	font-size: 14px;
	flex-shrink: 0;
}

/* Pure GPU Keyframes */
@keyframes cbEnter {
	from { opacity: 0; transform: translateY(16px) scale(0.985); }
	to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes cbSpin {
	from { transform: rotate(0deg); }
	to   { transform: rotate(360deg); }
}

@keyframes cbFloat {
	0%, 100% { transform: translateY(0); }
	50%      { transform: translateY(-7px); }
}

@keyframes cbBreath {
	0%, 100% { opacity: 0.68; transform: scale(0.95); }
	50%      { opacity: 1; transform: scale(1.07); }
}

@keyframes cbDoorPulse {
	0%, 100% { filter: drop-shadow(0 0 6px rgba(255, 140, 0, 0.45)); }
	50%      { filter: drop-shadow(0 0 16px rgba(255, 190, 60, 0.85)); }
}

@keyframes cbSmoke {
	0%   { opacity: 0; transform: translateY(4px) scale(0.7); }
	35%  { opacity: 0.55; }
	100% { opacity: 0; transform: translateY(-22px) scale(1.5); }
}

@keyframes cbRise {
	0%   { opacity: 0; transform: translateY(0) translateX(0) scale(0.7); }
	15%  { opacity: 0.85; }
	80%  { opacity: 0.4; }
	100% { opacity: 0; transform: translateY(-102vh) translateX(26px) scale(1.2); }
}

@keyframes cbShimmer {
	0%, 72% { left: -120%; }
	100%    { left: 160%; }
}

@keyframes cbPulse {
	0%, 100% { opacity: 0.75; transform: scale(1); }
	50%      { opacity: 1; transform: scale(1.28); }
}

@keyframes cbTwinkle {
	0%, 100% { opacity: 0.35; transform: scale(0.8); }
	50%      { opacity: 1; transform: scale(1.2); }
}

@keyframes cbDriftA {
	from { transform: translate(0, 0); }
	to   { transform: translate(34px, 28px); }
}

@keyframes cbDriftB {
	from { transform: translate(0, 0); }
	to   { transform: translate(-30px, -24px); }
}

/* Responsive */
@media (max-width: 900px) {
	body.cb-body {
		padding: 16px;
	}
	.cb-frame {
		grid-template-columns: 1fr;
		min-height: auto;
	}
	.cb-stage-col {
		order: -1;
		padding: 26px 22px 20px;
		border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	}
	.cb-sanctuary {
		max-width: 210px;
		margin: 8px auto 10px;
	}
	.cb-perks {
		grid-template-columns: 1fr;
	}
	.cb-auth-col {
		border-right: none;
		padding: 26px 22px 24px;
	}
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
	.cb-embers {
		display: none;
	}
}
