@import url('apresentacao.css');
@import url('cartao-acesso.css');
@import url('formulario.css');

/* =========================================================
   BASE (HTML, BODY, FUNDO GLOBAL)
========================================================= */


body {
	min-height: 100vh;
	width: 100%;
	background-color: oklch(15.038% 0.00877 274.27);
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
}

body::before {
	content: "";
	position: absolute;
	inset: 0px;
	background-image: linear-gradient(to bottom right,
			oklch(28.446% 0.10486 3.889 / 0.1),
			transparent,
			oklch(27.154% 0.12354 313.17 / 0.1));
}


/* =========================================================
   EFEITOS DE FUNDO (GLOW / DECORAÇÃO)
========================================================= */


.camada-efeitos {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.camada-efeitos::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	max-width: 500px;
	width: 100%;
	height: 500px;
	background-color: oklch(59.163% 0.21802 0.566 / 0.05);
	border-radius: 50%;
	filter: blur(120px);
}

.camada-efeitos::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	max-width: 500px;
	width: 100%;
	height: 500px;
	background-color: oklch(55.754% 0.2526 302.319 / 0.05);
	border-radius: 9999px;
	filter: blur(120px);
}


/* =========================================================
   LAYOUT PRINCIPAL
========================================================= */


.layout-principal {
	display: flex;
	align-items: center;
	justify-content: center;
	max-width: 72rem;
	width: 100%;
	padding: 3rem 1.5rem;
	gap: 3rem;
	z-index: 10;
}

@media screen and (max-width: 1023px) {
	.layout-principal {
		flex-direction: column;
		gap: 0;
	}
}

@media screen and (max-width: 639px) {
	.layout-principal {
		padding: 3rem 1rem 2rem;
	}
}


/* =========================================================
  SELECIONAR IDIOMA
========================================================= */

.idioma {
	position: absolute;
	top: 1.5rem;
	right: 1.5rem;
	z-index: 50;
}

.idioma__botao {
	display: flex;
	align-items: center;
	gap: 0.5rem;

	padding: 0.5rem 0.75rem;
	background-color: oklch(27.95% 0.03688 260.049 / 0.6);
	border: 1px solid oklch(37.17% 0.0392 257.31 / 0.5);
	border-radius: 0.75rem;
	backdrop-filter: blur(4px);

	transition: all 0.2s ease;
}

.idioma__botao:hover {
	transform: scale(1.03);
	background-color: oklch(27.95% 0.03688 260.049 / 0.8);
	border-color: oklch(44.554% 0.0375 257.307 / 0.5);
}

.idioma__label {
	font-size: 0.875rem;
	font-weight: 500;
	color: oklch(86.898% 0.01994 252.99);
	line-height: 1.25rem;
	transition: color 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.idioma__botao:hover .idioma__label {
	color: oklch(100% 0.00011 271.152);
}

.idioma__icone {
	width: 0.875rem;
	height: 0.875rem;
	color: oklch(71.068% 0.0352 256.828);
	transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
}


.idioma__botao:hover .idioma__icone {
	color: oklch(72.525% 0.17527 349.733);
}

.idioma__dropdown {
	position: absolute;
	top: 100%;
	right: 0;
	width: 11rem;
	margin-top: 0.5rem;

	background-color: oklch(27.95% 0.03688 260.049 / 0.95);
	backdrop-filter: blur(12px);
	border: 1px solid oklch(37.17% 0.0392 257.31 / 0.5);
	border-radius: 0.75rem;

	box-shadow: 0 20px 25px -5px oklch(0% 0 0 / 0.1),
		0 8px 10px -6px oklch(0% 0 0 / 0.1),
		0 0 0 0 oklch(0% 0 0 / 0.2);
	overflow: hidden;

	opacity: 0;
	transform: translateY(-5px);
	pointer-events: none;
	transition: all 0.15s ease;
}

.idioma.is-aberto .idioma__dropdown {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.idioma.is-aberto .idioma__icone {
	transform: rotate(180deg);
}

.idioma__opcao {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 0.625rem;
	padding: 0.625rem 1rem;
	color: oklch(86.898% 0.01994 252.99);

	cursor: pointer;
	transition: color 150ms cubic-bezier(0.4, 0, 0.2, 1), 
              background-color 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.idioma__opcao:hover {
	background-color: oklch(37.17% 0.0392 257.31 / 0.5);
}

.idioma__opcao.is-selecionado {
	background-color: rgba(236, 72, 153, 0.1);
	color: oklch(0.718 0.202 349.761);
}

.idioma__check {
	display: none;
	width: 0.875rem;
	/* 14px (equivalente ao w-3.5) */
	height: 0.875rem;
	color: oklch(0.718 0.202 349.761);
	/* pink-500 equivalente */
	flex-shrink: 0;
}

.idioma__opcao.is-selecionado .idioma__check {
	display: block;
}

.idioma__pais {
	font-size: 0.875rem;
	line-height: 1.75rem;
	font-weight: 500;
}

.idioma__nome {
	font-size: 0.875rem;
	line-height: 1.25rem;
	font-weight: 500;
	flex: 1 1 0%;
	text-align: left;
}

@media screen and (max-width: 639px) {
	.idioma{
		top: 1rem;
    right: 1rem;
	}

	.idioma__botao {
		padding: 0.4rem 0.65rem;
		gap: 0.4rem;
	}

	.idioma__label {
		font-size: 0.775rem;
	}
}


/* =========================================================
   ANIMAÇÕES
========================================================= */


/* Container deslizando da esquerda */
@keyframes entrarEsquerda {
	0% {
		opacity: 0;
		transform: translateX(-30px);
	}

	100% {
		opacity: 1;
		transform: translateX(0);
	}
}

/* Itens internos subindo */
@keyframes subirSuave {
	0% {
		opacity: 0;
		transform: translateY(20px);
	}

	100% {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Animação do Título (Vem de cima com inclinação) */
@keyframes titulo3D {
	0% {
		opacity: 0;
		transform: translateY(-30px) rotateX(-15deg);
	}

	100% {
		opacity: 1;
		transform: translateY(0) rotateX(0deg);
	}
}

/* Animação do Formulário (Efeito de virada de página/3D) */
@keyframes formulario3D {
	0% {
		opacity: 0;
		transform: perspective(1000px) rotateY(-90deg) scale(0.8);
	}

	100% {
		opacity: 1;
		transform: perspective(1000px) rotateY(0deg) scale(1);
	}
}

/* Animação dos Inputs (Surgem da esquerda com leve giro) */
@keyframes entradaInput {
	0% {
		opacity: 0;
		transform: translateX(-30px) rotateY(20deg);
	}

	100% {
		opacity: 1;
		transform: translateX(0) rotateY(0);
	}
}

@keyframes anima-zoom-figma {
	0% {
		opacity: 0;
		transform: scale(0.8);
	}

	100% {
		opacity: 1;
		transform: scale(1);
	}
}

@keyframes anima-check-figma {
	0% {
		opacity: 0;
		transform: scale(0) rotate(-180deg);
	}

	100% {
		opacity: 1;
		transform: scale(1) rotate(0deg);
	}
}

@keyframes confete-queda {
	0% {
		transform: translateY(0) rotate(0deg);
		opacity: 0;
	}

	10% {
		opacity: 1;
	}


	85% {
		opacity: 0;
	}

	100% {
		transform: translateY(110vh) rotate(720deg);
		opacity: 0;
		/* some antes de reiniciar (sem flash) */
	}
}