/* ============================================================
   Acceso al sistema — aura aqua y azul institucional
   ============================================================ */

:root {
	--ink-900: #0A1018;
	--ink-800: #111A26;
	--gold: #004481;
	--gold-hover: #005AA3;
	--gold-strong: #003766;
	--gold-ink: #003766;

	--paper: #FAF8F2;
	--white: #FFFFFF;

	--text: #161F2C;
	--text-soft: #333D4B;
	--muted: #5B6472;
	--muted-on-ink: #D2D8E1;
	--placeholder: #737E90;

	--line: #E1DED8;
	--line-hover: #CEC8BE;
	--line-cool: #DFE3EA;

	--danger: #B42318;
	--danger-text: #7A1B12;
	--danger-bg: #FEF3F2;
	--danger-line: #F3C7C3;

	--success: #0F6B45;
	--success-bg: #EFF8F3;
	--success-line: #BFE3D1;

	--notice: #8A5A00;
	--notice-bg: #FFF8E9;
	--notice-line: #F0DBA8;

	--control-h: 46px;
	--control-r: 11px;

	--font-ui: "Lato", "Source Sans Pro", "Segoe UI", system-ui, -apple-system, sans-serif;
	--font-display: "Lora", Georgia, "Times New Roman", serif;

	--ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

[hidden] {
	display: none !important;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	margin: 0;
	min-height: 100vh;
	min-height: 100dvh;
	overflow-x: hidden;
	background: #FAF8F2;
	color: var(--text);
	font-family: var(--font-ui);
	font-size: 16px;
	line-height: 1.5;
	color-scheme: light;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img {
	display: block;
	max-width: 100%;
}

a {
	color: inherit;
}

::selection {
	background: rgba(0, 68, 129, 0.2);
	color: var(--ink-900);
}

/* ------------------------------------------------------------
   Estructura
   ------------------------------------------------------------ */

.auth {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-content: center;
	min-height: 100vh;
	min-height: 100dvh;
	background: transparent;
}

.aura-layer {
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	transform: translateZ(0);
}

.aura-layer--1 {
	background: radial-gradient(circle at 25% 40%, rgba(34, 211, 238, 0.34) 0%, rgba(103, 232, 249, 0.12) 32%, transparent 55%), radial-gradient(circle at 72% 58%, rgba(14, 165, 233, 0.28) 0%, rgba(125, 211, 252, 0.10) 34%, transparent 58%);
	filter: blur(90px);
}

.aura-layer--2 {
	background: radial-gradient(circle at 25% 40%, rgba(255, 255, 255, 0.65) 0%, transparent 12%);
	mix-blend-mode: multiply;
	filter: blur(43px);
}

.aura-layer--3 {
	background: radial-gradient(circle at 72% 58%, rgba(255, 255, 255, 0.55) 0%, transparent 13%);
	mix-blend-mode: multiply;
	filter: blur(50px);
}

.aura-layer--4 {
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.42) 0%, transparent 45%, rgba(6, 182, 212, 0.12) 100%);
	mix-blend-mode: multiply;
	filter: blur(72px);
}

/* --- Panel de marca (izquierda) ----------------------------- */

.auth-story {
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 40px;
	padding: clamp(28px, 4.4vw, 64px);
	color: #F2F4F8;
	background-color: var(--ink-900);
	background-image:
		radial-gradient(140% 112% at 0% 100%, rgba(7, 11, 17, 0.97) 0%, rgba(7, 11, 17, 0.92) 32%, rgba(7, 11, 17, 0.58) 63%, rgba(7, 11, 17, 0.14) 100%),
		linear-gradient(180deg, rgba(7, 11, 17, 0.46) 0%, rgba(7, 11, 17, 0.08) 46%, rgba(7, 11, 17, 0.36) 100%),
		url("../img/backgroundLogin.jpg");
	background-size: auto, auto, cover;
	background-position: center, center, 36% 45%;
	background-repeat: no-repeat;
}

@media (min-width: 1024px) {
	.auth-story {
		display: none;
	}

	.auth-panel {
		width: min(100% - 30px, 440px);
		min-height: 0;
		margin: 15px auto;
		border: 1px solid rgba(255, 255, 255, 0.86);
		border-radius: 20px;
		background: rgba(255, 255, 255, 0.9);
		color: var(--text);
		-webkit-backdrop-filter: blur(24px) saturate(145%);
		backdrop-filter: blur(24px) saturate(145%);
		box-shadow: 0 28px 72px -42px rgba(0, 55, 102, 0.34), 0 8px 28px rgba(0, 68, 129, 0.1);
	}
}

.auth-story__inner {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: clamp(44px, 11vh, 132px);
	max-width: 34rem;
}

.auth-story__foot {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px 24px;
	padding-top: 22px;
	border-top: 1px solid rgba(255, 255, 255, 0.16);
	font-size: 12.5px;
	color: rgba(236, 240, 246, 0.82);
}

.private-access {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #F1F4F8;
	font-weight: 700;
	letter-spacing: 0.01em;
}

.private-access svg {
	flex: none;
	width: 14px;
	height: 14px;
	color: var(--gold);
}

/* --- Marca --------------------------------------------------- */

.brand {
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 52px;
}

.brand__mark {
	position: relative;
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.4);
	border-radius: 14px;
	background: var(--white);
	box-shadow: 0 12px 28px -14px rgba(0, 0, 0, 0.85);
}

.brand__mark img {
	width: 100%;
	height: 100%;
	padding: 6px;
	object-fit: contain;
}

.brand__monogram {
	display: none;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background: var(--gold);
	color: var(--ink-900);
	font-family: var(--font-display);
	font-size: 29px;
	font-weight: 600;
	line-height: 1;
}

.brand__mark.is-fallback {
	border-color: rgba(255, 255, 255, 0.45);
	background: var(--gold);
}

.brand__mark.is-fallback img {
	display: none;
}

.brand__mark.is-fallback .brand__monogram {
	display: flex;
}

.brand__name {
	margin: 0;
	max-width: 24ch;
	color: #FFFFFF;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.005em;
	text-shadow: 0 1px 12px rgba(7, 11, 17, 0.55);
	text-wrap: balance;
}

/* --- Titular ------------------------------------------------- */

.story-title {
	margin: 0;
	max-width: 17ch;
	color: #FBFBFD;
	font-family: var(--font-display);
	font-size: clamp(38px, 4.2vw, 60px);
	font-weight: 500;
	line-height: 1.04;
	letter-spacing: -0.015em;
	text-shadow: 0 2px 26px rgba(7, 11, 17, 0.55);
	text-wrap: balance;
}

.story-text {
	margin: 0;
	max-width: 42ch;
	color: var(--muted-on-ink);
	font-size: 16px;
	line-height: 1.65;
	text-shadow: 0 1px 14px rgba(7, 11, 17, 0.5);
}

.story-group {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

/* --- Panel del formulario (derecha) ------------------------- */

.auth-panel {
	width: min(100% - 30px, 440px);
	margin: 15px auto;
	border: 1px solid rgba(255, 255, 255, 0.86);
	border-radius: 20px;
	display: flex;
	flex-direction: column;
	background: rgba(255, 255, 255, 0.9);
	color: var(--text);
	-webkit-backdrop-filter: blur(24px) saturate(145%);
	backdrop-filter: blur(24px) saturate(145%);
	box-shadow: 0 28px 72px -42px rgba(0, 55, 102, 0.34), 0 8px 28px rgba(0, 68, 129, 0.1);
}

.auth-panel__inner {
	display: flex;
	flex: 0 0 auto;
	flex-direction: column;
	justify-content: flex-start;
	width: 100%;
	max-width: none;
	margin-inline: 0;
	padding: 25px 15px 20px;
}

#login-form {
	width: min(100%, 340px);
	margin-inline: auto;
}

.auth-logo {
	display: flex;
	justify-content: center;
	width: fit-content;
	margin: 0 auto 8px;
	border-radius: 12px;
}

.auth-logo img {
	width: clamp(104px, 22vw, 124px);
	max-height: 50px;
	object-fit: contain;
}

.auth-logo:focus-visible {
	outline: 2px solid var(--gold-strong);
	outline-offset: 4px;
}

.panel-title {
	margin: 0;
	color: #102A3A;
	font-family: var(--font-display);
	font-size: clamp(25px, 2.5vw, 29px);
	font-weight: 500;
	line-height: 1.12;
	letter-spacing: -0.025em;
	text-wrap: balance;
	text-align: center;
  padding: 10px;
}

.panel-subtitle {
	margin: 6px auto 15px;
	max-width: 38ch;
	color: #536A78;
	font-size: 13px;
	line-height: 1.5;
	text-align: center;
}

/* ------------------------------------------------------------
   Avisos del sistema
   ------------------------------------------------------------ */

.status {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 18px;
	padding: 11px 13px;
	border: 1px solid var(--line-cool);
	border-radius: 12px;
	background: var(--white);
	font-size: 13px;
	line-height: 1.5;
}

.status:focus {
	outline: none;
}

.status__icon {
	flex: none;
	width: 19px;
	height: 19px;
	margin-top: 1px;
}

.status__title {
	display: block;
	margin-bottom: 2px;
	font-size: 12px;
	font-weight: 700;
}

.status p {
	margin: 0;
}

.status ul {
	margin: 0;
	padding-left: 17px;
}

.status li + li {
	margin-top: 4px;
}

.status--error {
	border-color: var(--danger-line);
	background: var(--danger-bg);
	color: var(--danger-text);
}

.status--error .status__icon {
	color: var(--danger);
}

.status--success {
	border-color: var(--success-line);
	background: var(--success-bg);
	color: var(--success);
}

.status--notice {
	border-color: var(--notice-line);
	background: var(--notice-bg);
	color: var(--notice);
}

/* ------------------------------------------------------------
   Formulario
   ------------------------------------------------------------ */

.field {
	margin-bottom: 10px;
}

.field__label {
	display: block;
	margin-bottom: 6px;
	color: #344C5A;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.012em;
	transition: color 0.18s ease;
}

.field:focus-within .field__label {
	color: #087E9B;
}

.field__control {
	position: relative;
	display: flex;
	align-items: center;
}

.field__control > input,
.field__control > select {
	width: 100%;
	height: var(--control-h);
	margin: 0;
	padding: 0 12px 0 40px;
	border: 1px solid var(--line);
	border-radius: var(--control-r);
	background: var(--white);
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
	color: var(--text);
	caret-color: var(--gold-strong);
	font-family: inherit;
	font-size: 13px;
	line-height: 1.4;
	transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
	-webkit-appearance: none;
	appearance: none;
}

.field__control > input::placeholder {
	color: var(--placeholder);
	opacity: 1;
}

.field__control > input:hover,
.field__control > select:hover {
	border-color: var(--line-hover);
}

.field__control > input:focus,
.field__control > select:focus {
	outline: none;
	border-color: var(--gold-strong);
	background: var(--white);
	box-shadow: 0 0 0 4px rgba(0, 68, 129, 0.16);
}

.field__control > input[type="password"] {
	padding-right: 62px;
}

.field__control > input::-ms-reveal,
.field__control > input::-ms-clear {
	display: none;
}

.field__icon {
	position: absolute;
	left: 14px;
	z-index: 3;
	width: 17px;
	height: 17px;
	color: #9AA3B1;
	pointer-events: none;
	transition: color 0.18s ease;
}

.field__control:focus-within .field__icon {
	color: var(--gold-strong);
}

.field.has-error .field__control > input,
.field.has-error .field__control > select {
	border-color: var(--danger);
	background: #FFFCFC;
	box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.09);
}

.field.has-error .field__control > input:focus,
.field.has-error .field__control > select:focus {
	box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.14);
}

.field.has-error .field__icon {
	color: var(--danger);
}

.field__error {
	display: flex;
	align-items: flex-start;
	gap: 6px;
	margin-top: 7px;
	color: #B42318;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.45;
}

.field__error svg {
	flex: none;
	width: 14px;
	height: 14px;
	margin-top: 1px;
}

.field__hint {
	display: flex;
	align-items: flex-start;
	gap: 6px;
	margin-top: 7px;
	color: #647987;
	font-size: 12px;
	line-height: 1.45;
}

.caps-hint {
	display: none;
	align-items: center;
	gap: 6px;
	margin-top: 7px;
	color: #005AA3;
	font-size: 12px;
}

.caps-hint.is-visible {
	display: flex;
}

.caps-hint svg {
	flex: none;
	width: 14px;
	height: 14px;
}

/* --- Mostrar / ocultar contraseña --------------------------- */

.password-toggle {
	position: absolute;
	top: 50%;
	right: 6px;
	z-index: 4;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 10px;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: var(--gold-ink);
	cursor: pointer;
	transform: translateY(-50%);
	transition: background-color 0.18s ease, color 0.18s ease;
}

.password-toggle svg {
	width: 20px;
	height: 20px;
}

.password-toggle:hover {
	background: #EAF3F9;
}

.password-toggle:active {
	background: #DCEBF6;
}

.password-toggle:focus-visible {
	outline: 2px solid var(--gold-strong);
	outline-offset: 2px;
}

/* --- Select2 ------------------------------------------------ */

.field .select2-container {
	position: relative;
	z-index: 2;
	width: 100% !important;
}

.field .select2-container--default .select2-selection--single {
	display: flex;
	align-items: center;
	height: var(--control-h);
	padding: 0 38px 0 40px;
	border: 1px solid var(--line);
	border-radius: var(--control-r);
	background: var(--white);
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.field .select2-container--default .select2-selection--single:hover {
	border-color: var(--line-hover);
}

.field .select2-container--default .select2-selection--single .select2-selection__rendered {
	padding: 0;
	color: var(--text);
	font-size: 13px;
	line-height: 1.35;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.field .select2-container--default .select2-selection--single .select2-selection__placeholder {
	color: var(--placeholder);
}

.field .select2-container--default .select2-selection--single .select2-selection__arrow {
	top: 50%;
	right: 15px;
	width: 22px;
	height: 22px;
	margin-top: -11px;
	transform: none;
}

.field .select2-container--default .select2-selection--single .select2-selection__arrow b {
	margin-top: -2px;
	margin-left: -4px;
	border-color: var(--muted) transparent transparent transparent;
	border-width: 5px 4px 0 4px;
}

.field .select2-container--default.select2-container--focus .select2-selection--single,
.field .select2-container--default.select2-container--open .select2-selection--single {
	outline: none;
	border-color: var(--gold-strong);
	box-shadow: 0 0 0 4px rgba(0, 68, 129, 0.16);
}

.field.has-error .select2-container--default .select2-selection--single {
	border-color: var(--danger);
	background: #FFFCFC;
	box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.09);
}

.select2-container--default .select2-dropdown {
	margin-top: 6px;
	overflow: hidden;
	border: 1px solid var(--line-cool);
	border-radius: 12px;
	background: var(--white);
	box-shadow: 0 22px 44px -20px rgba(15, 22, 34, 0.35);
}

.select2-container--default .select2-search--dropdown {
	padding: 8px;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
	width: 100% !important;
	height: 42px;
	padding: 0 12px;
	border: 1px solid var(--line-cool);
	border-radius: 8px;
	background: #FBFBFC;
	color: var(--text);
	font-family: inherit;
	font-size: 14px;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
	outline: none;
	border-color: var(--gold-strong);
	box-shadow: 0 0 0 3px rgba(0, 68, 129, 0.14);
}

.select2-container--default .select2-results > .select2-results__options {
	max-height: 264px;
}

.select2-container--default .select2-results__option {
	padding: 9px 13px;
	color: var(--text);
	font-size: 13px;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
	background: #EAF3F9;
	color: var(--ink-900);
}

.select2-container--default .select2-results__option[aria-selected="true"] {
	background: #DCEBF6;
	color: var(--ink-900);
	font-weight: 700;
}

.select2-container--default .select2-results__option--disabled {
	color: #98A2B3;
}

.select2-container--default .select2-results__message {
	padding: 10px 14px;
	color: var(--muted);
	font-size: 13.5px;
}

/* --- Botón principal ---------------------------------------- */

.submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	height: var(--control-h);
	margin-top: 4px;
	padding: 0 16px;
	border: 0;
	border-radius: var(--control-r);
	background-color: var(--gold);
	background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0));
	box-shadow: 0 14px 28px -16px rgba(0, 68, 129, 0.65), inset 0 0 0 1px rgba(0, 55, 102, 0.16);
	color: #FFFFFF;
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.008em;
	cursor: pointer;
	transition: background-color 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
}

.submit:hover {
	background-color: var(--gold-hover);
	box-shadow: 0 16px 32px -16px rgba(0, 68, 129, 0.72), inset 0 0 0 1px rgba(0, 55, 102, 0.2);
}

.submit:active {
	box-shadow: 0 6px 16px -12px rgba(0, 68, 129, 0.72), inset 0 1px 2px rgba(0, 55, 102, 0.2);
	transform: translateY(1px);
}

.submit:focus-visible {
	outline: 2px solid var(--ink-900);
	outline-offset: 3px;
}

.submit[disabled] {
	cursor: not-allowed;
	opacity: 0.58;
}

.submit.is-loading {
	cursor: progress;
	opacity: 0.9;
}

.submit__spinner {
	display: none;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.32);
	border-top-color: #FFFFFF;
	border-radius: 50%;
	animation: auth-spin 0.7s linear infinite;
}

.submit.is-loading .submit__spinner {
	display: block;
}

@keyframes auth-spin {
	to {
		transform: rotate(360deg);
	}
}

.form-hint {
	display: flex;
	align-items: flex-start;
	gap: 7px;
	margin: 10px 0 0;
	color: #647987;
	font-size: 12px;
	line-height: 1.5;
}

.form-hint svg {
	flex: none;
	width: 14px;
	height: 14px;
	margin-top: 1px;
	color: #8C97A7;
}

.access-help {
	margin: 22px 0 0;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.16);
	color: rgba(215, 222, 231, 0.76);
	font-size: 12.5px;
	line-height: 1.6;
}

/* --- Pie del panel ------------------------------------------ */

.auth-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px 20px;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 8px 15px 10px;
	border-top: 1px solid rgba(0, 68, 129, 0.09);
	color: #647987;
	font-size: 12px;
}

.auth-foot a {
	padding: 4px 2px;
	border-radius: 4px;
	color: #18576C;
	font-weight: 700;
	text-decoration: none;
	transition: color 0.18s ease;
}

.auth-foot a:hover {
	color: var(--gold-ink);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.auth-foot a:focus-visible {
	outline: 2px solid var(--gold-strong);
	outline-offset: 2px;
}

/* ------------------------------------------------------------
   Foco y salto de contenido
   ------------------------------------------------------------ */

:focus-visible {
	outline-offset: 2px;
}

.skip-link {
	position: absolute;
	top: -80px;
	left: 16px;
	z-index: 100;
	padding: 10px 16px;
	border-radius: 8px;
	background: var(--white);
	box-shadow: 0 8px 24px -10px rgba(0, 0, 0, 0.5);
	color: var(--ink-900);
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	transition: top 0.15s ease;
}

.skip-link:focus {
	top: 16px;
	outline: 2px solid var(--gold-strong);
	outline-offset: 1px;
}

/* ------------------------------------------------------------
   Entrada orquestada (una sola secuencia)
   ------------------------------------------------------------ */

@keyframes auth-rise {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.auth-story .brand {
	animation: auth-rise 0.6s var(--ease) both;
}

.story-group {
	animation: auth-rise 0.7s 0.08s var(--ease) both;
}

.auth-story__foot {
	animation: auth-rise 0.7s 0.24s var(--ease) both;
}

.auth-panel__inner {
	animation: auth-rise 0.7s 0.12s var(--ease) both;
}

.auth-foot {
	animation: auth-rise 0.7s 0.2s var(--ease) both;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-delay: 0ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}
}

/* ------------------------------------------------------------
   Adaptación a pantallas
   ------------------------------------------------------------ */

@media (max-width: 1023px) {
	.auth-story {
		padding: clamp(24px, 4vw, 40px);
	}

	.auth-story__inner {
		gap: clamp(34px, 8vh, 80px);
	}

	.story-title {
		max-width: 19ch;
		font-size: clamp(34px, 4.8vw, 46px);
	}
}

@media (max-width: 899px) {
	.auth {
		grid-template-columns: minmax(0, 1fr);
	}

	.auth-story {
		flex: none;
		gap: 0;
		padding: 22px 22px 26px;
		background-position: center, center, 42% 32%;
	}

	.auth-story__inner {
		gap: 20px;
		max-width: none;
	}

	.brand {
		gap: 12px;
		min-height: 44px;
	}

	.brand__mark {
		width: 44px;
		height: 44px;
		border-radius: 12px;
	}

	.brand__monogram {
		font-size: 25px;
	}

	.brand__name {
		font-size: 15.5px;
	}

	.story-group {
		gap: 10px;
	}

	.story-title {
		max-width: 22ch;
		font-size: clamp(29px, 7.4vw, 38px);
		line-height: 1.06;
	}

	.story-text,
	.auth-story__foot {
		display: none;
	}

	.auth-panel__inner {
		flex: none;
		justify-content: flex-start;
		padding: 14px 15px 6px;
	}

	.auth-foot {
		padding: 8px 15px 10px;
	}

	.panel-title {
		font-size: 26px;
	}

	.panel-subtitle {
		margin-bottom: 14px;
	}

	.field {
		margin-bottom: 10px;
	}

	.access-help {
		margin-top: 18px;
		padding-top: 18px;
	}
}

@media (max-width: 420px) {
	:root {
		--control-h: 46px;
	}

	.auth-story {
		padding: 20px 18px 22px;
	}

	.brand {
		gap: 11px;
	}

	.brand__mark {
		width: 42px;
		height: 42px;
	}

	.story-title {
		font-size: clamp(26px, 8vw, 32px);
	}

	.auth-panel__inner {
		padding: 12px 15px 6px;
	}

	.auth-foot {
		padding: 8px 15px 10px;
	}

	.field__control > input,
	.field__control > select,
	.field .select2-container--default .select2-selection--single {
		padding-left: 38px;
	}

	.password-toggle {
		height: 42px;
		padding: 0 10px;
	}
}

/* ------------------------------------------------------------
   Ajustes finos del navegador
   ------------------------------------------------------------ */

.field__control > input:-webkit-autofill,
.field__control > input:-webkit-autofill:hover,
.field__control > input:-webkit-autofill:focus {
	-webkit-text-fill-color: var(--text);
	-webkit-box-shadow: 0 0 0 1000px var(--white) inset, 0 0 0 4px rgba(0, 68, 129, 0.16);
	box-shadow: 0 0 0 1000px var(--white) inset, 0 0 0 4px rgba(0, 68, 129, 0.16);
	transition: background-color 9999s ease-out 0s;
}

.field__control > input::-webkit-credentials-auto-fill-button {
	position: absolute;
	right: 0;
	visibility: hidden;
	pointer-events: none;
}
