/* ===== Páginas de registro / ingreso ===== */
.auth-page {
	min-height: calc(100vh - 73px);
	display: grid;
	grid-template-columns: 1fr;
	background: var(--color-bg-alt);
}

@media (min-width: 900px) {
	.auth-page {
		grid-template-columns: 1fr 1fr;
	}
}

.auth-visual {
	position: relative;
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: var(--space-5);
	padding: var(--space-8) var(--space-6);
	background: linear-gradient(160deg, var(--color-purple) 0%, var(--color-purple-dark) 100%);
	overflow: hidden;
	text-align: center;
}

@media (min-width: 900px) {
	.auth-visual {
		display: flex;
	}
}

.auth-visual img {
	width: min(320px, 80%);
	height: auto;
	filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.2));
}

.auth-visual h2 {
	color: var(--color-white);
	font-size: 1.5rem;
	max-width: 22ch;
	margin: 0;
}

.auth-visual p {
	color: rgba(255, 255, 255, 0.8);
	max-width: 34ch;
	margin: 0;
}

.auth-visual .hero__doodle {
	opacity: 0.35;
	color: var(--color-white) !important;
}

.auth-form-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--space-7) var(--space-4);
}

.auth-form-card {
	width: 100%;
	max-width: 400px;
}

.auth-logo {
	display: inline-flex;
	margin-bottom: var(--space-5);
}

.auth-logo svg {
	height: 32px;
	width: auto;
}

.auth-form-card h1 {
	font-size: 1.6rem;
	margin-bottom: var(--space-1);
}

.auth-form-card > p {
	color: var(--color-text-muted);
	margin-bottom: var(--space-5);
}

/* Las primitivas de formulario (.form-alert, .form-field, .form-input) se
   movieron a base.css: también las usan /mi-cuenta y /mis-hijos, que no
   cargan este archivo. Aquí queda solo lo propio de las páginas de
   autenticación. */

.form-input__toggle {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: transparent;
	border: none;
	color: var(--color-text-muted);
	cursor: pointer;
}

.form-input__toggle svg {
	width: 20px;
	height: 20px;
}

.form-input__toggle .icon-hide {
	display: none;
}

.form-input__toggle.is-visible .icon-show {
	display: none;
}

.form-input__toggle.is-visible .icon-hide {
	display: inline-flex;
}

.form-check {
	display: flex;
	align-items: flex-start;
	gap: var(--space-2);
	margin-bottom: var(--space-5);
	font-size: 0.88rem;
	color: var(--color-text-muted);
}

.form-check input {
	margin-top: 3px;
	flex: none;
	width: 16px;
	height: 16px;
	accent-color: var(--color-purple);
}

.form-check a {
	color: var(--color-purple);
	font-weight: 600;
}

.form-submit {
	width: 100%;
	justify-content: center;
	margin-bottom: var(--space-4);
}

.form-row-between {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-2) var(--space-3);
	margin-bottom: var(--space-5);
	font-size: 0.88rem;
}

.form-row-between a {
	color: var(--color-purple);
	font-weight: 600;
}

.auth-switch {
	text-align: center;
	font-size: 0.92rem;
	color: var(--color-text-muted);
	margin: 0;
}

.auth-switch a {
	color: var(--color-purple);
	font-weight: 600;
}

.password-strength {
	display: none;
	align-items: center;
	gap: var(--space-2);
	margin-top: var(--space-2);
}

.password-strength.is-visible {
	display: flex;
}

.password-strength__track {
	flex: 1;
	height: 5px;
	border-radius: var(--radius-pill);
	background: var(--color-border);
	overflow: hidden;
}

.password-strength__fill {
	display: block;
	height: 100%;
	width: 0;
	border-radius: var(--radius-pill);
	transition: width 0.2s ease, background 0.2s ease;
}

.password-strength__fill.is-weak {
	width: 33%;
	background: var(--color-strength-weak);
}

.password-strength__fill.is-medium {
	width: 66%;
	background: var(--color-strength-medium);
}

.password-strength__fill.is-strong {
	width: 100%;
	background: var(--color-strength-strong);
}

.password-strength__label {
	flex: none;
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--color-text-muted);
	min-width: 3.2em;
}
