/* global.css - Global styles and basic reset */

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

/* The body base (font, background, glow) comes from theme.css. Here we only
   add the lobby's centered-card layout. */
body {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 2rem 1rem 1rem;
}

/* Accessibility utilities */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Utilidades de visibilidad */
.hidden {
	display: none !important;
}

.visible {
	display: block !important;
}

.flex-visible {
	display: flex !important;
}

/* Programmatic focus for accessibility */
.success:focus,
.error:focus {
	outline: 3px solid var(--accent);
	outline-offset: 2px;
}

/* Contenedor principal */
.container {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 2rem;
	box-shadow: var(--shadow-md);
	max-width: 520px;
	width: 90%;
	margin-top: auto;
	flex: 0 0 auto;
}

/* Balance the footer below the card without clipping tall forms above the viewport. */
body > .app-footer {
	margin-bottom: auto;
}

/* Typography */
h1 {
	text-align: center;
	margin-bottom: 2rem;
	font-size: 2rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	background: var(--accent-grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.brand-heading {
	display: flex;
	justify-content: center;
	background: none;
	color: var(--text);
}

.brand-lockup {
	display: grid;
	gap: 0.4rem;
	text-align: center;
}

.brand-title:not(.sr-only) {
	display: block;
	font-size: clamp(2rem, 9vw, 3rem);
	line-height: 1.05;
	letter-spacing: -0.04em;
}

.brand-tagline {
	margin: 0;
	color: var(--text-muted);
	font-size: 0.95rem;
	line-height: 1.45;
}

.lobby-header {
	display: grid;
	gap: 1.25rem;
	margin-bottom: 2rem;
}

.lobby-header .brand-heading {
	margin-bottom: 0;
}

.brand-logo {
	display: block;
	width: clamp(11rem, 55vw, 15rem);
}

.brand-logo[hidden] {
	display: none;
}

.brand-logo__image {
	display: block;
	width: 100%;
	height: auto;
}

.brand-logo__image--dark {
	display: none;
}

[data-theme="dark"] .brand-logo__image--light {
	display: none;
}

[data-theme="dark"] .brand-logo__image--dark {
	display: block;
}

h2 {
	color: var(--text);
	margin-bottom: 1.5rem;
	font-size: 1.5rem;
	border-bottom: 2px solid var(--accent);
	padding-bottom: 0.5rem;
}

h3, h4 {
	color: var(--text);
}

/* Secciones */
section {
	margin-bottom: 3rem;
}

hr {
	border: none;
	height: 2px;
	background: linear-gradient(to right, transparent, var(--accent), transparent);
	margin: 3rem 0;
}

@media (max-width: 420px) {
	.container {
		width: 100%;
		padding: 1.25rem;
	}
}
