/* ============================================================
   CADASTRO — estilo alinhado ao design da nova plataforma
   (apps/app/src/app/pages/cadastro)
   Paleta Microkids:
     âncora  #1b1d36 (navy) · destaque #ad96dc (roxo)
     pálido  #cfd5f4        · profundo #2e1a47
   ============================================================ */

html,
body {
	height: 100%;
}

body {
	margin: 0;
	font-family: "DM Sans", sans-serif;
	background: #ffffff !important;
	color: #1b1d36;
}

.Barlow {
	font-family: "Barlow", sans-serif;
}

/* Utilitários usados pela view/JS (a página não carrega Bootstrap CSS) */
.d-none {
	display: none !important;
}

.alert {
	padding: 12px 16px;
	border: 1px solid transparent;
	border-radius: 6px;
	font-size: 0.9rem;
}

.alert-danger {
	color: #c10016;
	background-color: #fdeaec;
	border-color: #f5c2c9;
}

.alert-success {
	color: #4d6312;
	background-color: #f1f7dd;
	border-color: #d3e39c;
}

.container-cadastro-usuario {
	width: 100%;
	height: 100vh;
	display: flex;
}

.cadastro-card {
	display: flex;
	flex-direction: row;
	width: 100%;
	height: 100%;
}

/* ------------------------------------------------------------
   Painel lateral (descrição)
   ------------------------------------------------------------ */
.tela-descricao {
	flex: 1;
	background-color: #1b1d36;
	color: #ffffff;
	display: flex;
	flex-direction: row;
	overflow: hidden;
	box-sizing: border-box;
	min-width: 425px;
	max-width: 475px;
}

.tela-descricao .container1 {
	flex: 1;
	padding: 2.5rem 1.5rem 2.5rem 3rem;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	overflow: hidden;
}

.tela-descricao .container2 {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	position: relative;
	left: 10px;
}

.tela-descricao .container2 img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: rotate(180deg);
}

.tela-descricao__logo {
	max-width: 180px;
	margin-bottom: 1.5rem;
}

.tela-descricao__content {
	z-index: 1;
}

.tela-descricao__content h2 {
	font-size: 1.85rem;
	font-weight: 800;
	line-height: 1.22;
	margin: 0 0 1rem 0;
	letter-spacing: -0.03em;
	text-transform: uppercase;
	color: #ffffff;
}

.tela-descricao__content p {
	font-size: 0.9rem;
	line-height: 1.65;
	color: #ad96dc;
	margin: 0;
}

.tela-descricao__features {
	z-index: 1;
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0.875rem;
}

.tela-descricao__features li {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.78);
}

.tela-descricao__features .feature-check {
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	color: #ad96dc;
	display: flex;
	align-items: center;
	justify-content: center;
}

.tela-descricao__footer {
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.tela-descricao__social {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.tela-descricao__social .social-label {
	font-size: 0.75rem;
	font-weight: 600;
	color: #ad96dc;
	letter-spacing: 0.05em;
}

.tela-descricao__social .social-icons {
	display: flex;
	gap: 0.75rem;
	align-items: center;
}

.tela-descricao__social .social-icon {
	color: #ad96dc;
	transition: color 0.2s ease;
	display: flex;
	align-items: center;
	font-size: 1.1rem;
	text-decoration: none;
}

.tela-descricao__social .social-icon:hover {
	color: #ffffff;
}

.tela-descricao__social .social-icon svg {
	width: 16px;
	height: 16px;
	display: block;
	position: relative;
	bottom: 2px;
}

.tela-descricao__company {
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
}

.tela-descricao__company span {
	font-size: 0.7rem;
	color: #ffffff;
	line-height: 1.5;
}

/* ------------------------------------------------------------
   Área do formulário
   ------------------------------------------------------------ */
.form-area {
	flex: 2;
	background-color: #ffffff;
	box-sizing: border-box;
	height: 100%;
	overflow-y: auto;
}

.form-vertical-center {
	min-height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.form-badge-wrapper {
	padding: 2rem 2.5rem 0;
	margin-bottom: 2rem;
}

.form-badge {
	display: inline-block;
	background-color: #cfd5f4;
	color: #1b1d36;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	padding: 8px 18px;
	border-radius: 8px;
}

.form-alert-wrapper {
	padding: 0 2.5rem;
	margin-bottom: 1rem;
}

.cadastro-form {
	padding: 0 2.5rem 2rem;
	box-sizing: border-box;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem 1.25rem;
	align-items: start;
}

.campo--full {
	grid-column: 1 / -1;
}

.campo label {
	display: block;
	font-size: 0.8rem;
	font-weight: 600;
	color: #545457;
	margin-bottom: 4px;
}

.cadastro-form .form-control,
.login-form .form-control {
	width: 100%;
	font-family: inherit;
	font-size: 0.9rem;
	color: #1b1d36;
	background-color: #ffffff;
	border: 1px solid #d4d4dc;
	border-radius: 6px;
	padding: 10px 12px;
	height: auto;
	box-sizing: border-box;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cadastro-form .form-control:focus,
.login-form .form-control:focus {
	outline: none;
	border-color: #ad96dc;
	box-shadow: 0 0 0 3px rgba(173, 150, 220, 0.25);
}

.cadastro-form .form-control:disabled,
.login-form .form-control:disabled {
	background-color: #ededeb;
	color: #8c9eb0;
}

/* Seletor de tipo de usuário (Sou Aluno / Sou Professor) */
.tipo-usuario {
	display: flex;
	gap: 1rem;
	justify-content: center;
}

.btn-nivel-acesso {
	flex: 0 1 200px;
	border: 1px solid #cfd5f4;
	border-radius: 8px;
	color: #1b1d36;
	text-align: center;
	padding: 1rem;
	font-weight: 700;
	text-transform: uppercase;
	text-decoration: none;
	font-size: 0.8rem;
	letter-spacing: 0.04em;
	transition: background-color 0.2s ease, color 0.2s ease,
		border-color 0.2s ease;
}

.btn-nivel-acesso i {
	font-size: 1.6rem;
	color: #ad96dc;
	margin-bottom: 0.35rem;
	transition: color 0.2s ease;
}

.btn-nivel-acesso:hover {
	background-color: #cfd5f4;
	color: #1b1d36;
	text-decoration: none;
}

.btn-nivel-acesso.active {
	background-color: #1b1d36;
	border-color: #1b1d36;
	color: #ffffff;
}

.btn-nivel-acesso.active i {
	color: #ad96dc;
}

/* "Minha escola não aparece na lista" */
.escolaOff {
	display: none;
	font-size: 0.75rem;
	font-weight: 600;
	color: #ad96dc;
	cursor: pointer;
	margin-top: 6px;
}

.escolaOff:hover {
	color: #2e1a47;
	text-decoration: underline;
}

/* Checkboxes (LGPD e segmentos) */
.campo-checkbox {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	font-size: 0.85rem;
	line-height: 1.5;
	color: #38383d;
}

.campo-checkbox input[type="checkbox"] {
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	margin-top: 3px;
	accent-color: #1b1d36;
}

.lista-segmentos {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

/* Botão CADASTRAR */
.campo--acoes {
	text-align: right;
	margin-top: 20px;
}

.btn-cadastrar {
	font-family: "Barlow", sans-serif;
	font-weight: 700;
	font-size: 0.9rem;
	letter-spacing: 0.06em;
	color: #1b1d36;
	background-color: #ad96dc;
	border: none;
	border-radius: 8px;
	padding: 12px 32px;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.btn-cadastrar:hover {
	background-color: #c1a7e2;
}

/* ------------------------------------------------------------
   Login
   ------------------------------------------------------------ */
.painel-cta {
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.75rem;
}

.painel-cta span {
	font-size: 0.95rem;
	font-weight: 700;
	color: #ffffff;
}

.btn-cta-cadastro {
	display: inline-block;
	font-family: "Barlow", sans-serif;
	font-weight: 700;
	font-size: 0.8rem;
	letter-spacing: 0.06em;
	color: #1b1d36;
	background-color: #cfd5f4;
	padding: 10px 18px;
	border-radius: 8px;
	text-decoration: none;
	transition: background-color 0.2s ease;
}

.btn-cta-cadastro:hover {
	background-color: #ffffff;
	color: #1b1d36;
	text-decoration: none;
}

.login-form-wrapper {
	width: 100%;
	max-width: 480px;
	margin: 0 auto;
	padding: 2rem 2.5rem;
	box-sizing: border-box;
}

.login-title {
	font-family: "Barlow Semi Condensed", sans-serif;
	font-size: 1.4rem;
	font-weight: 700;
	color: #1b1d36;
	margin: 0 0 1.5rem 0;
}

.login-aviso-rondonia {
	font-size: 0.85rem;
	color: #38383d;
	margin: -1rem 0 1.5rem 0;
}

.login-aviso-rondonia a {
	color: #ad96dc;
	text-decoration: underline;
}

.login-aviso-rondonia a:hover {
	color: #2e1a47;
}

.login-form .campo {
	margin-bottom: 1.25rem;
}

.login-actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 1.5rem;
}

.link-recuperar {
	font-size: 0.9rem;
	font-weight: 700;
	color: #1b1d36;
	text-decoration: none;
}

.link-recuperar:hover {
	color: #2e1a47;
	text-decoration: underline;
}

.btn-entrar {
	display: inline-block;
	font-family: "Barlow", sans-serif;
	font-weight: 700;
	font-size: 0.9rem;
	letter-spacing: 0.06em;
	color: #1b1d36;
	background-color: #ad96dc;
	border: none;
	border-radius: 8px;
	padding: 12px 40px;
	cursor: pointer;
	text-decoration: none;
	transition: background-color 0.2s ease;
}

.btn-entrar:hover {
	background-color: #c1a7e2;
	color: #1b1d36;
	text-decoration: none;
}

/* Cadastro realizado com sucesso */
.sucesso-badge-wrapper {
	padding: 0;
	margin-bottom: 1.5rem;
}

.sucesso-texto p {
	font-size: 0.95rem;
	line-height: 1.65;
	color: #38383d;
	margin: 0 0 1rem 0;
}

.sucesso-texto {
	margin-bottom: 1.5rem;
}

/* Link de cadastro exibido apenas quando o painel lateral some (mobile) */
.login-cadastro-mobile {
	display: none;
	margin-top: 1.5rem;
	font-size: 0.85rem;
	color: #38383d;
}

.login-cadastro-mobile a {
	color: #2e1a47;
}

/* ------------------------------------------------------------
   Responsivo
   ------------------------------------------------------------ */
@media (max-width: 1024px) {
	.container-cadastro-usuario {
		height: auto;
		min-height: 100vh;
	}

	.cadastro-card {
		flex-direction: column;
		height: auto;
		min-height: 100vh;
	}

	.tela-descricao {
		min-width: 0;
		max-width: none;
	}

	.tela-descricao .container2 {
		display: none;
	}

	.tela-descricao .container1 {
		padding: 1.5rem 2rem;
		flex-direction: row;
		align-items: center;
		gap: 1.5rem;
		justify-content: flex-start;
	}

	.tela-descricao__logo {
		max-width: 120px;
		margin-bottom: 0.75rem;
	}

	.tela-descricao__content h2 {
		font-size: 1.25rem;
	}

	.tela-descricao__content h2 br {
		display: none;
	}

	.tela-descricao__content p,
	.tela-descricao__features,
	.tela-descricao__footer {
		display: none;
	}

	.form-area {
		flex: unset;
		width: 100%;
		height: auto;
	}

	.cadastro-form {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 480px) {
	.tela-descricao {
		display: none;
	}

	.login-cadastro-mobile {
		display: block;
	}

	.login-form-wrapper {
		padding: 2rem 1.25rem;
	}

	.form-badge-wrapper,
	.form-alert-wrapper,
	.cadastro-form {
		padding-left: 1.25rem;
		padding-right: 1.25rem;
	}
}
