/* SSRE — página de acceso del equipo (/acceso/) */
:root {
	--azul: #0f2d4f;
	--azul-noche: #0a1e36;
	--azul-medio: #173c66;
	--dorado: #c9a13b;
	--dorado-claro: #e6c46a;
	--grafito: #262a30;
	--suave: #5b6472;
	--papel: #f3f5f8;
	--linea: #dce2ea;
	--rojo: #a8322a;
	--rojo-fondo: #fbeceb;
}

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

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

body.ac {
	margin: 0;
	min-height: 100vh;
	font-family: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-size: 16px;
	line-height: 1.55;
	color: var(--grafito);
	background: var(--azul-noche);
	background-image:
		radial-gradient(1100px 520px at 50% -10%, rgba(201, 161, 59, .20), transparent 62%),
		linear-gradient(180deg, var(--azul) 0%, var(--azul-noche) 100%);
	-webkit-font-smoothing: antialiased;
}

.ac-main {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 40px 16px;
}

.ac-card {
	width: 100%;
	max-width: 420px;
	background: #fff;
	border-radius: 12px;
	border-top: 4px solid var(--dorado);
	padding: 30px 28px 28px;
	box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .55);
}

.ac-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 26px;
	color: var(--azul);
	text-decoration: none;
}
.ac-brand img { width: 58px; height: auto; display: block; }
.ac-brand strong { display: block; font-family: "Spectral", Georgia, serif; font-size: 1.35rem; font-weight: 600; letter-spacing: .04em; line-height: 1.1; }
.ac-brand small { display: block; font-size: .8rem; color: var(--suave); letter-spacing: .02em; }

.ac-card h1 {
	margin: 0 0 8px;
	font-family: "Spectral", Georgia, serif;
	font-weight: 600;
	font-size: 1.7rem;
	line-height: 1.2;
	color: var(--azul);
}

.ac-lead { margin: 0 0 22px; color: var(--suave); }
.ac-lead strong { color: var(--grafito); font-weight: 600; word-break: break-all; }

.ac-msg {
	margin: 0 0 18px;
	padding: 11px 14px;
	border-radius: 8px;
	background: var(--papel);
	border-left: 3px solid var(--dorado);
	font-size: .94rem;
}
.ac-msg--error { background: var(--rojo-fondo); border-left-color: var(--rojo); color: #6f1f19; }
.ac-msg a { color: inherit; font-weight: 600; }

.ac-form label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }

.ac-input {
	display: block;
	width: 100%;
	height: 50px;
	padding: 0 14px;
	font: inherit;
	font-size: 1.05rem;
	color: var(--grafito);
	background: #fff;
	border: 1.5px solid #b9c3cf;
	border-radius: 8px;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.ac-input:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 3px rgba(201, 161, 59, .45); }

.ac-input--code {
	height: 62px;
	text-align: center;
	font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
	font-size: 1.9rem;
	font-weight: 700;
	letter-spacing: .42em;
	padding-left: .42em; /* compensa el espaciado de la última cifra */
	color: var(--azul);
}
.ac-input--code::placeholder { color: #c9d1db; }

.ac-check {
	display: flex !important;
	align-items: flex-start;
	gap: 9px;
	margin: 16px 0 0;
	font-weight: 400 !important;
	font-size: .9rem !important;
	color: var(--suave);
	cursor: pointer;
}
.ac-check input { width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--azul); flex: none; }

.ac-btn {
	display: block;
	width: 100%;
	height: 50px;
	margin-top: 18px;
	font: inherit;
	font-weight: 600;
	font-size: 1.02rem;
	color: #fff;
	background: var(--azul);
	border: 0;
	border-radius: 8px;
	cursor: pointer;
	transition: background-color .15s ease, transform .1s ease;
}
.ac-btn:hover { background: var(--azul-medio); }
.ac-btn:active { transform: translateY(1px); }
.ac-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--dorado-claro); }

.ac-alt { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--linea); font-size: .9rem; color: var(--suave); }
.ac-alt p { margin: 0 0 10px; }
.ac-alt form { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }

.ac-link {
	padding: 0;
	font: inherit;
	font-weight: 600;
	color: var(--azul);
	background: none;
	border: 0;
	cursor: pointer;
	text-decoration: underline;
	text-decoration-color: rgba(15, 45, 79, .3);
	text-underline-offset: 3px;
}
.ac-link:hover { text-decoration-color: var(--dorado); }

.ac-foot {
	margin: 22px 0 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px 10px;
	font-size: .86rem;
	color: #8ea0b6;
	text-align: center;
}
.ac-foot a { color: #c5d1df; text-decoration: none; }
.ac-foot a:hover { color: var(--dorado-claro); text-decoration: underline; }
.ac-legal { margin: 8px 0 0; font-size: .78rem; color: #6f829a; text-align: center; }

@media (max-width: 420px) {
	.ac-card { padding: 26px 20px 22px; }
	.ac-card h1 { font-size: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
	.ac-input, .ac-btn { transition: none; }
}

@media (max-width: 480px) {
	.ac-foot { flex-direction: column; align-items: center; gap: 6px; }
	.ac-foot > span { display: none; }
}
