/* Telas de entrada do AGF Viagens (/entrar, /update-password) */
@font-face {
	font-family: "Geist";
	src: url("/assets/viagens_br/fontes/geist-latin-wght-normal.woff2") format("woff2");
	font-weight: 100 900;
	font-display: swap;
}
@font-face {
	font-family: "Outfit";
	src: url("/assets/viagens_br/fontes/outfit-latin-600-normal.woff2") format("woff2");
	font-weight: 600;
	font-display: swap;
}
@font-face {
	font-family: "Outfit";
	src: url("/assets/viagens_br/fontes/outfit-latin-700-normal.woff2") format("woff2");
	font-weight: 700;
	font-display: swap;
}
:root {
	--marinho: #032b4f;
	--marinho-2: #0a3a66;
	--marinho-texto: #c9d8e8;
	--marinho-fraco: #7f9ab5;
	--acao: #015ca4;
	--acao-forte: #01497f;
	--verde: #85c227;
	--papel: #f4f5f7;
	--tinta: #111827;
	--tinta-2: #374151;
	--tinta-suave: #6b7280;
	--linha: #d9dde3;
	--erro: #c62f2f;
	--erro-fundo: #fdeeee;
	--ok: #157a46;
	--ok-fundo: #e8f6ee;
	--foco: rgba(1, 92, 164, 0.28);
	--curva: cubic-bezier(0.2, 0, 0, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
	min-height: 100dvh;
	background: var(--marinho);
	color: var(--tinta);
	font: 400 16px/1.5 "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
	-webkit-font-smoothing: antialiased;
	display: grid;
	grid-template-rows: auto 1fr;
}

/* Faixa da marca */
.marca {
	position: relative;
	overflow: hidden;
	padding: calc(40px + env(safe-area-inset-top)) 24px 72px;
	color: #fff;
	background:
		radial-gradient(120% 90% at 100% 0%, rgba(1, 92, 164, 0.55), transparent 60%),
		var(--marinho);
}
/* Rota tracejada: viagem, sem clichê de avião */
.marca svg.rota {
	position: absolute;
	right: -60px;
	bottom: 34px;
	width: 300px;
	height: auto;
	opacity: 0.35;
	pointer-events: none;
}
.marca img {
	display: block;
	width: 124px;
	height: auto;
}
.marca h1 {
	margin: 28px 0 0;
	font: 700 34px/1.05 "Outfit", "Geist", sans-serif;
	letter-spacing: -0.02em;
}
.marca h1 span { color: var(--verde); }
.marca p {
	margin: 10px 0 0;
	max-width: 30ch;
	color: var(--marinho-texto);
	font-size: 15px;
	text-wrap: pretty;
}

/* Folha do formulário */
.folha {
	position: relative;
	margin-top: -40px;
	background: var(--papel);
	border-radius: 24px 24px 0 0;
	padding: 32px 20px calc(28px + env(safe-area-inset-bottom));
	display: flex;
	flex-direction: column;
}
.folha::before {
	content: "";
	position: absolute;
	top: 0;
	left: 24px;
	width: 48px;
	height: 4px;
	border-radius: 0 0 4px 4px;
	background: var(--verde);
}
.cartao {
	width: 100%;
	max-width: 400px;
	margin: 0 auto;
}
.cartao h2 {
	margin: 0;
	font: 600 22px/1.2 "Outfit", "Geist", sans-serif;
	letter-spacing: -0.01em;
}
.cartao .sub {
	margin: 6px 0 24px;
	color: var(--tinta-suave);
	font-size: 15px;
}
form { display: flex; flex-direction: column; gap: 16px; }
label {
	display: block;
	margin-bottom: 6px;
	font-size: 14px;
	font-weight: 500;
	color: var(--tinta-2);
}
.campo { position: relative; }
input {
	width: 100%;
	height: 52px;
	padding: 0 14px;
	border: 1px solid var(--linha);
	border-radius: 10px;
	background: #fff;
	color: var(--tinta);
	font: inherit;
	font-size: 16px;
	transition: border-color 160ms var(--curva), box-shadow 160ms var(--curva);
}
input::placeholder { color: #9ca3af; }
input:focus {
	outline: none;
	border-color: var(--acao);
	box-shadow: 0 0 0 4px var(--foco);
}
input[aria-invalid="true"] { border-color: var(--erro); }
.campo input[type="password"], .campo input.com-botao { padding-right: 84px; }
.mostrar {
	position: absolute;
	right: 6px;
	bottom: 6px;
	height: 40px;
	padding: 0 12px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--acao);
	font: 500 14px "Geist", sans-serif;
	cursor: pointer;
}
.mostrar:hover { background: #eaf3fb; }
.mostrar:focus-visible, .link:focus-visible, .botao:focus-visible {
	outline: none;
	box-shadow: 0 0 0 4px var(--foco);
}
.botao {
	height: 52px;
	margin-top: 4px;
	border: 0;
	border-radius: 10px;
	background: var(--acao);
	color: #fff;
	font: 600 16px "Geist", sans-serif;
	cursor: pointer;
	transition: background 160ms var(--curva), transform 120ms var(--curva);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}
.botao:hover { background: var(--acao-forte); }
.botao:active { transform: scale(0.98); }
.botao[disabled] { opacity: 0.75; cursor: progress; }
.giro {
	width: 18px;
	height: 18px;
	border: 2px solid rgba(255, 255, 255, 0.4);
	border-top-color: #fff;
	border-radius: 50%;
	animation: giro 700ms linear infinite;
	display: none;
}
.botao[disabled] .giro { display: block; }
@keyframes giro { to { transform: rotate(360deg); } }
.link {
	align-self: center;
	border: 0;
	background: none;
	padding: 8px 10px;
	border-radius: 8px;
	color: var(--acao);
	font: 500 15px "Geist", sans-serif;
	cursor: pointer;
}
.link { text-decoration: none; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.aviso {
	margin: 0;
	padding: 12px 14px;
	border-radius: 10px;
	font-size: 14px;
	line-height: 1.45;
}
.aviso.erro { background: var(--erro-fundo); color: var(--erro); }
.aviso.ok { background: var(--ok-fundo); color: var(--ok); }
.aviso:empty { display: none; }
[hidden] { display: none !important; }
.rodape {
	margin: auto auto 0;
	padding-top: 32px;
	max-width: 400px;
	width: 100%;
	color: var(--tinta-suave);
	font-size: 12.5px;
	text-align: center;
}
.entra { animation: entra 360ms var(--curva) both; }
@keyframes entra { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) {
	.entra, .giro { animation: none; }
}

/* Tela larga: marca à esquerda, formulário à direita */
@media (min-width: 900px) {
	body { grid-template-rows: none; grid-template-columns: minmax(380px, 46%) 1fr; }
	.marca {
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		padding: 56px 56px 48px;
	}
	.marca img { width: 156px; }
	.marca h1 { font-size: 52px; margin-top: 0; }
	.marca p { font-size: 17px; }
	.marca svg.rota { width: 520px; right: -40px; top: 32%; bottom: auto; opacity: 0.45; }
	.folha {
		margin: 0;
		border-radius: 0;
		justify-content: center;
		padding: 48px;
	}
	.folha::before { display: none; }
	.rodape { margin: 0 auto; }
}

/* Nova senha: regras que vão ficando verdes enquanto digita */
.regras {
	margin: -4px 0 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 6px;
	font-size: 14px;
	color: var(--tinta-suave);
}
.regras li {
	display: flex;
	align-items: center;
	gap: 8px;
	transition: color 160ms var(--curva);
}
.regras li::before {
	content: "";
	width: 16px;
	height: 16px;
	flex: none;
	border-radius: 50%;
	border: 1.5px solid var(--linha);
	background: #fff center / 10px no-repeat;
	transition: background-color 160ms var(--curva), border-color 160ms var(--curva);
}
.regras li.ok { color: var(--ok); }
.regras li.ok::before {
	border-color: var(--ok);
	background-color: var(--ok);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 5.2 4.1 7.3 8 3' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.feito {
	display: grid;
	justify-items: start;
	gap: 12px;
}
.feito .selo {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: var(--ok-fundo);
	color: var(--ok);
}

/* Texto só para leitor de tela (a logo já diz "AGF") */
.oculto {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
