/* ══════════════════════════════════════════════════════════
   auth.css — navbar sign-in pill, owner-only visibility,
   protected-page guard, status toast, and auth-gated toggles.
   ══════════════════════════════════════════════════════════ */

/* ── NAVBAR SIGN-IN / APPS ───────────────────────────────── */
/* .ni already supplies the shared padding, font-size, radius,
   border, and colours. These rules only keep the label on one
   line and space the Font Awesome glyph correctly. */
.auth-nav-btn {
	display: inline-flex;
	align-items: center;
	flex-wrap: nowrap;
	white-space: nowrap;
	flex-shrink: 0;
	cursor: pointer;
}

.auth-nav-btn i {
	flex: 0 0 auto;
	font-size: 11px;
	line-height: 1;
}

.auth-nav-btn span {
	display: inline-block;
	white-space: nowrap;
	line-height: 1;
}

#auth-apps-link[hidden],
.auth-nav-btn[hidden],
[data-auth="owner"][hidden] {
	display: none !important;
}

/* private/public pill is only rendered for the owner */
.visibility-toggle-container[hidden] {
	display: none !important;
}

/* ── STATUS TOAST ────────────────────────────────────────── */
.auth-toast {
	position: fixed;
	left: 50%;
	bottom: 28px;
	z-index: 100000;
	transform: translate(-50%, 18px);
	max-width: min(92vw, 520px);
	padding: 13px 22px;
	border: 2px solid var(--border, #5b6559);
	border-radius: 100px;
	background: var(--surface, #1a1d19);
	color: var(--text, #e8ece6);
	font-family: "Rubik", sans-serif;
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-align: center;
	box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition:
		opacity 0.2s ease,
		transform 0.2s ease,
		visibility 0s linear 0.2s;
}

.auth-toast.show {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, 0);
	transition:
		opacity 0.2s ease,
		transform 0.2s ease,
		visibility 0s linear 0s;
}

@media (max-width: 720px) {
	/* The auth pills sit after the existing links; compact the shared
	   nav pills on mid-size phones so the last pill stays inside the bar. */
	.nav-center {
		gap: 3px;
		padding-left: 4px;
	}
	.ni {
		padding: 6px 10px;
	}
}

@media (max-width: 450px) {
	/* The nav scrolls horizontally on small phones; keep sign-in and APPS
	   reachable without scrolling past every section link. */
	#auth-login-btn,
	#auth-apps-link {
		order: -1;
	}
	.auth-toast {
		bottom: 18px;
		font-size: 11.5px;
		padding: 11px 18px;
	}
}
