@import url('https://fonts.googleapis.com/css2?family=League+Spartan:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Aboreto&display=swap');

* {
	box-sizing: border-box;
}

html,
body {
	height: 100%;
	overflow: hidden;
}

body {
	margin: 0;
	font-family: 'League Spartan', 'Segoe UI', sans-serif;
	background: #f4f6f7;
	color: #0a7f89;
	overflow: hidden;
}

main {
	height: 100svh;
}

.toast-container {
	position: fixed;
	top: 12px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 9999;
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: min(92vw, 520px);
	pointer-events: none;
}

.toast {
	padding: 12px 14px;
	border-radius: 10px;
	font-size: 20px;
	font-weight: 500;
	line-height: 1.1;
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
	opacity: 1;
	transition: opacity 0.25s ease;
	background: #ffffff;
	color: #1f2937;
	border-left: 6px solid #64748b;
}

.toast-info {
	border-left-color: #0f766e;
}

.toast-success {
	border-left-color: #16a34a;
}

.toast-warning {
	border-left-color: #d97706;
}

.toast-error {
	border-left-color: #dc2626;
}

.toast-out {
	opacity: 0;
}

.wrapper {
	max-width: 760px;
	margin: 32px auto;
	padding: 0 20px 40px;
}

.fundo-1 {
	position: relative;
	width: 100vw;
	height: 100svh;
	min-height: 100svh;
	margin: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	padding: 28px 18px;
	background-image: url('imgs/fundo_pag1_site.png');
	background-size: cover;
	background-position: center;
}

.cadastro-layer {
	position: relative;
	width: min(560px, 100%);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 22px;
}

.fundo-2 {
	position: relative;
	width: 100vw;
	height: 100svh;
	min-height: 100svh;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	padding: 24px 20px;
	background-image: url('imgs/fundo2.png');
	background-size: cover;
	background-position: center;
}

.quiz-layer {
	position: relative;
	width: min(760px, 100%);
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.top-logo {
	width: clamp(96px, 28vw, 180px);
	height: auto;
}

.top-title {
	width: clamp(240px, 78vw, 620px);
	height: auto;
}

.top-title-text {
	margin: 0;
	max-width: min(560px, 88vw);
	text-align: center;
	text-transform: uppercase;
	font-family: 'Aboreto', sans-serif;
	font-size: clamp(30px, 6.2vw, 64px);
	line-height: 0.92;
	letter-spacing: -0.03em;
	font-weight: 400;
}

.register-form {
	width: min(570px, 92vw);
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 40px;
	padding: 8px 6px;
}

.register-form label {
	font-size: clamp(20px, 3.1vw, 34px);
	font-weight: 500;
	line-height: 1.1;
	white-space: nowrap;
}

.register-form input {
	border: none;
	border-bottom: 2px solid #0a7f89;
	border-radius: 0;
	background: transparent;
	font-size: clamp(24px, 3.1vw, 40px);
	color: #0a7f89;
	padding: 0 0 8px;
	outline: none;
	margin-bottom: 9px;
}

.register-form input::placeholder {
	color: rgba(10, 127, 137, 0.65);
}

.register-form button {
	align-self: center;
	margin-top: 14px;
	padding: 14px 52px;
	min-width: 230px;
	border: none;
	border-radius: 999px;
	background: #0a7f89;
	color: #ffffff;
	font-size: clamp(22px, 3.4vw, 36px);
	line-height: 1;
	cursor: pointer;
	white-space: nowrap;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

.register-form button:hover {
	background: #086f78;
}

.register-form button:disabled {
	opacity: 0.9;
	cursor: not-allowed;
}

.register-form button.is-loading::before {
	content: '';
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-top-color: #ffffff;
	animation: button-loading-spin 0.85s linear infinite;
}

.brand-signature {
	margin: 12px 0 0;
	font-size: clamp(32px, 6.4vw, 66px);
	font-weight: 500;
	letter-spacing: 1px;
}

.card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 16px;
	margin-top: 10px;
}

.is-hidden {
	display: none;
}

h2,
label {
	font-weight: 600;
}

.quiz-question {
	margin: 0 0 10px;
	font-size: clamp(19px, 4.2vw, 25px);
	line-height: 1.4;
	font-weight: 700;
	letter-spacing: 0.01em;
	color: #086f78;
}

.quiz-option {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 8px;
	padding: 4px 8px;
	border-radius: 14px;
	cursor: pointer;
	color: #086f78;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.quiz-option input[type='radio'] {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.quiz-badge {
	width: clamp(32px, 8.5vw, 42px);
	height: clamp(32px, 8.5vw, 42px);
	border-radius: 999px;
	background: #086f78;
	color: #ffffff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: clamp(15px, 4.2vw, 22px);
	font-weight: 700;
	line-height: 1;
	flex: 0 0 auto;
}

.quiz-text {
	font-size: clamp(14px, 4vw, 19px);
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0.005em;
}

.quiz-option input[type='radio']:checked + .quiz-badge {
	background: #065b62;
	box-shadow: 0 0 0 4px rgba(8, 111, 120, 0.2);
}

.quiz-option.is-selected {
	background: rgba(8, 111, 120, 0.14);
}

.quiz-option.is-selected .quiz-text {
	color: #065b62;
}

#quiz-form {
	width: min(700px, 100%);
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
}

.quiz-submit {
	margin: 6px auto 0;
	border: none;
	border-radius: 999px;
	padding: 10px 24px;
	background: #086f78;
	color: #ffffff;
	font-size: clamp(13px, 3.6vw, 18px);
	font-weight: 600;
	cursor: pointer;
	display: block;
}

.quiz-submit:hover {
	background: #065b62;
}

input,
button {
	font-size: 16px;
	padding: 10px 12px;
	border-radius: 6px;
}

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

.card input {
	border: 1px solid #cbd5e1;
	color: #1f2937;
}

.card button {
	border: none;
	background: #0f766e;
	color: #ffffff;
	cursor: pointer;
}

.card button:hover {
	background: #115e59;
}

#status {
	font-weight: 700;
	margin: 0;
	color: #1f2937;
}

pre {
	margin: 0;
	white-space: pre-wrap;
	word-break: break-word;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	padding: 12px;
	color: #1f2937;
}

@media (max-width: 768px) {
	.fundo-1 {
		height: 100svh;
		min-height: 100svh;
		padding: 24px 14px;
	}

	.toast {
		font-size: 18px;
	}

	.register-form label {
		font-size: clamp(18px, 5.6vw, 24px);
	}

	.register-form input {
		font-size: clamp(18px, 5.8vw, 24px);
		margin-bottom: 9px;
	}

	.register-form button {
		font-size: clamp(20px, 6.2vw, 28px);
		min-width: 200px;
		padding: 12px 34px;
	}

	.brand-signature {
		font-size: clamp(26px, 9vw, 42px);
	}

	.top-title-text {
		font-size: clamp(24px, 7vw, 36px);
		line-height: 0.94;
		letter-spacing: -0.035em;
	}

	.fundo-2 {
		padding: 20px 16px;
	}
}

@media (max-width: 420px) {
	.register-form label {
		font-size: 17px;
	}

	.register-form input {
		font-size: 17px;
	}

	.register-form button {
		font-size: 20px;
		min-width: 180px;
		padding: 11px 24px;
	}

	.top-title-text {
		font-size: clamp(21px, 8.4vw, 30px);
		line-height: 0.96;
	}

	.fundo-2 {
		padding: 16px 12px;
	}
}
