/* ============================
   RESET
============================ */
* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html,
body {
	height: 100%;
	min-height: 100vh;
	font-family: "Libertinus Serif Display", system-ui;
	background-color: #FEF5F5;
	background-attachment: fixed;
	background-size: cover;
	color: #3b2f3b;
	font-weight: normal;
}


body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	background-color: #FEF5F5 !important;

}

main {
	flex: 1;
	background-color: transparent !important;

}

/* Container geral do formulário de login/cadastro */
.login-container {
	text-align: center;
	margin-bottom: 20px;
	font-family: "Libertinus Serif Display", system-ui;
}


.input-box {
	display: flex;
	align-items: center;
	border: 2px solid #B84088;
	border-radius: 14px;
	margin: 12px auto;
	background: #FFF7DF;
	width: 100%;
	max-width: 400px;
	height: 42px;
	position: relative;
}

/* Ícones dentro do input */
.input-box i:first-child {
	color: #B84088;
	font-size: 18px;
	width: 40px;
	padding: 12px;
	height: 100%;
	border-right: 2px solid #B84088;
	flex-shrink: 0;
}

/* Campos de texto e senha */
.input-box input {
	border: none;
	outline: none;
	background: transparent;
	font-size: 20px;
	padding: 12px;
	flex: 1;
	height: 100%;
	color: black;
}

/* Efeito ao focar nos inputs */
.login-container input:focus {
	border-color: #bd1278;
	box-shadow: 0 0 6px rgba(189, 18, 120, 0.4);
}

/* ============================
   LAYOUT PRINCIPAL
============================ */
.container {
	max-width: 1000px;
	margin: 0 auto;
	padding: 40px 60px;
	text-align: center;
	font-weight: normal;
	background-color: #FEF5F5
}

/* ============================
   HEADER
============================ */
.header {
	flex-wrap: nowrap;
	background-color: #DC3B82;
	color: white;
	padding: 4px 10px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.home-link,
.home-link:visited,
.home-link:hover,
.home-link:active {
	text-decoration: none;
}

.logo-text {
	display: flex;
	align-items: center;
	gap: 5px;
}

/* Logo */
.logo-header {
	width: 60px;
	height: auto;
	display: block;
}

/* Texto "Chá de Vida" */
.header-title {
	font-family: 'Cookie', cursive;
	font-size: 50px;
	color: white;
	line-height: 1;
	position: relative;
	top: 2px;
	user-select: none;
}

/* Navegação */
.nav-links ul {
	display: flex;
	align-items: center;
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nav-links a {
	text-decoration: none;
	color: white;
	font-weight: bold;
	font-size: 23px;
	padding: 6px 10px;
	border-radius: 6px;
	transition: background 0.2s, color 0.2s;
	font-family: "Libertinus Serif Display", system-ui;

}

.nav-links a:hover {
	opacity: 0.8;
}

/* Ícones de login e menu */
.login-header {
	width: 30px;
	height: 30px;
	filter: brightness(0) invert(1);
	transition: transform 0.3s ease;
}

.menu-icon {
	width: 46px;
	cursor: pointer;
	display: none;
}


.nav-links a:hover {
	color: #FFD6EB;
	background: #e082b5;
}


/* ============================
   ÍCONE DE MOSTRAR/ESCONDER SENHA
============================ */
.toggle-password {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	cursor: pointer;
	color: #bd1278;
	font-size: 16px;
	border-right: none !important;
	padding: 0;
	background: transparent;
	z-index: 10;
}

/* ============================
   LISTA DE REGRAS DE SENHA
============================ */
#password-rules {
	list-style: none;
	padding: 10px 14px;
	background: #fff7df;
	border: 1px solid #e6b8d6;
	border-radius: 10px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
	font-size: 0.85rem;
	font-family: "Quicksand", sans-serif;
	color: #a33b73;
	width: 100%;
	max-width: 400px;
	margin: 0 auto;
	text-align: left;
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	transform: translateY(-5px);
	transition:
		max-height 0.4s ease,
		opacity 0.3s ease,
		transform 0.3s ease,
		margin 0.3s ease;
}

/* Quando ativa */
#password-rules.active {
	opacity: 1;
	transform: translateY(0);
	max-height: 220px;
	margin: 10px auto;
	pointer-events: all;
}

/* Quando deve desaparecer */
#password-rules.hidden {
	opacity: 0;
	transform: translateY(-5px);
	max-height: 0;
	margin: 0 auto;
	pointer-events: none;
	display: none !important;
}

/* Regras individuais */
#password-rules li {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 4px 0;
	transition: color 0.3s ease, opacity 0.3s ease;
}

#password-rules li.invalid {
	color: #d9534f;
}

#password-rules li.valid {
	color: #5cb85c;
	opacity: 0.6;
}

/* Ícones */
#password-rules li::before {
	font-family: "Font Awesome 6 Free";
	font-weight: 900;
	margin-right: 6px;
}

#password-rules li.invalid::before {
	content: "\f00d";
}

#password-rules li.valid::before {
	content: "\f00c";
}


/* ============================
   TÍTULO E BOTÕES
============================ */
.cadastro {
	font-family: 'Cookie', cursive;
	font-size: 90px;
	color: #d7479e;
	margin: 30px 0 10px;
	text-align: center;
	font-weight: normal;
	margin-top: 90px;
}

/* Botão de envio (Salvar) */
.btn-missao {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	width: 210px;
	height: 50px;
	background-color: #26A69A;
	color: white;
	border-radius: 25px;
	font-size: 22px;
	font-family: "Libertinus Serif Display", system-ui;
	text-decoration: none;
	transition: background-color 0.3s;
	margin-top: 12px;
	border: none;
	cursor: pointer;
}

/* Hover do botão */
.btn-missao:hover {
	background-color: rgb(32, 138, 128);
	color: white !important;
}

/* ============================
   LINKS E RODAPÉ DE LOGIN
============================ */
.signup {
	margin-top: 50px;
	font-size: 20px;
	text-align: center;
	font-family: 'Cookie', cursive;
}

.signup a {
	color: #d7479e;
	font-size: 50px;
	text-decoration: none;
}

.signup a:hover {
	color: #bd1278;
	text-decoration: underline;
}

/* ============================
   ALERTA DE ERRO 
============================ */
.alert.alert-danger {
	font-family: 'Quicksand', sans-serif;
	font-weight: 500;
	border-radius: 8px;
	font-size: 16px;
}

/* ============================
   MENU LATERAL (HAMBÚRGUER)
============================ */
.side-menu {
	position: fixed;
	top: 0;
	right: -260px;
	width: 260px;
	height: 100%;
	background: linear-gradient(180deg, #E45694, #A30F50);
	color: white;
	padding: 20px;
	box-shadow: -2px 0 8px rgba(0, 0, 0, 0.2);
	border-radius: 20px 0 0 20px;
	transition: right 0.3s ease-in-out;
	z-index: 1000;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.side-menu.open {
	right: 0;
}

.side-menu .menu-header {
	text-align: center;
	margin-bottom: 30px;
	font-size: 18px;
}

.side-menu ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.side-menu li {
	margin: 0;
}

.side-menu a {
	text-decoration: none;
	color: white;
	font-size: 22px;
	font-weight: bold;
	display: block;
	padding: 12px 16px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.3);
	transition: background 0.2s;
}

.side-menu a:hover {
	background: rgba(255, 255, 255, 0.2);
}

/* Botão de fechar */
.btn-close {
	background: #BD1278;
	border: none;
	padding: 12px;
	border-radius: 10px;
	font-size: 16px;
	font-weight: bold;
	cursor: pointer;
	color: white;
	transition: background 0.2s;
	margin-top: 20px;
}

.btn-close:hover {
	background: #a01065;
}

/* ===================== ERRO DE CADASTRO ===================== */
.erro-cadastro {
	display: flex;
	align-items: center;
	background-color: #ffe6e6;
	border: 1px solid #ff4d4d;
	color: #b30000;
	padding: 12px 18px;
	border-radius: 8px;
	margin-bottom: 20px;
	font-family: 'Quicksand', sans-serif;
	font-weight: 500;
	font-size: 14px;
}

.erro-cadastro i {
	margin-right: 10px;
	font-size: 18px;
}

/* Animação para destacar erro */
.erro-cadastro {
	animation: erroFade 0.5s ease;
}

@keyframes erroFade {
	from {
		opacity: 0;
		transform: translateY(-5px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ============================
   FOOTER
============================ */
.footer {
	background: #FF9DC9;
	color: white;
	text-align: center;
	padding: 12px 20px;
	font-size: 20px;
	border-top: 4px solid #FF9DC9;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
	margin-top: auto;
}

.footer .footer-logo {
	font-family: 'Cookie', cursive;
	font-size: 40px;
	margin: 0;
}

.footer p {
	margin: 0;
	font-size: 30px;
}

.footer .social-icons {
	display: flex;
	gap: 10px;
	align-items: center;
}

.footer a {
	color: white;
	font-size: 18px;
	display: inline-block;
	transition: transform 0.2s ease;
}

.footer a:hover {
	transform: scale(1.2);
	color: #FFD6EB;
}

/* ===========================
   MOBILE — UX MASTER
   (até 768px)
=========================== */
@media (max-width: 768px) {

	/* ===========================
     RESET
  ============================ */
	* {
		box-sizing: border-box;
		-webkit-tap-highlight-color: transparent;
	}

	body {
		overflow-x: hidden;
		font-size: 16px;
		line-height: 1.45;
	}

	img {
		max-width: 100%;
	}

	a {
		text-decoration: none;
	}



	/* ===========================
     HEADER
  ============================ */
	.header {
		padding: 12px 16px;
		display: flex;
		align-items: center;
		justify-content: space-between;
	}

	.logo-text {
		gap: 8px;
		display: flex;
		align-items: center;
	}

	.logo-header {
		height: 48px;
		width: 48px;
		object-fit: contain;
	}

	.header-title {
		font-size: 22px;
		font-weight: 600;
	}

	.menu-icon {
		width: 40px;
		height: 40px;
		cursor: pointer;
		padding: 4px;
	}

	/* remove menu desktop */
	.nav-links {
		display: none;
	}



	/* ===========================
      MENU LATERAL
  ============================ */

	/* MENU LATERAL FECHADO POR PADRÃO */
	#sideMenu {
		transform: translateX(-100%) !important;
		opacity: 0;
		visibility: hidden;
	}

	/* MENU LATERAL ABERTO */
	#sideMenu.active {
		transform: translateX(0) !important;
		opacity: 1;
		visibility: visible;
	}

	.side-menu {
		width: 80%;
		max-width: 340px;
		padding: 22px 18px;
		font-size: 18px;

		/* UX aqui 💙 */
		transition: transform .35s ease-in-out;
		overflow-y: auto;
		border-top-right-radius: 12px;
		border-bottom-right-radius: 12px;
	}

	.side-menu ul {
		display: flex;
		flex-direction: column;
		gap: 14px;
	}

	.side-menu ul li a {
		display: flex;
		align-items: center;
		gap: 12px;
		padding: 12px;
		border-radius: 10px;
		font-size: 17px;
	}

	.side-menu .icones {
		height: 22px;
		width: 22px;
	}

	.btn-close {
		background-color: #d7479e;
		color: #fff;
		padding: 10px 16px;
		font-size: 16px;
		border: none;
		border-radius: 10px;
		cursor: pointer;
		width: 30%;

		display: flex;
		/* permite centralizar com flex */
		justify-content: center;
		/* centraliza horizontal */
		align-items: center;
		/* centraliza vertical */

		margin-left: 0;
		/* encosta na esquerda */
		transition: background-color 0.3s ease, transform 0.2s ease;
	}

	.btn-close:hover {
		background-color: #b83d85;
		transform: translateX(-1px);
	}

	.login {
	    max-width: 45vw;      /* relativo à tela */
	    max-height: 45vw;
	    width: 180px;         /* limite superior */
	    height: 180px;
	    object-fit: contain;
	    display: block;
	    margin: 36px auto 12px;
		margin-top: -50px;
		margin-bottom: -40px;
	  }


	/* ===========================
       MAIN UX
  ============================ */
	main.container {
		display: flex;
		justify-content: center;
		padding: 24px 14px;
	}

	.login-container {
		width: 100%;
		max-width: 480px;
		margin: 0 auto;
		border-radius: 14px;
		padding: 22px 18px;

		display: flex;
		flex-direction: column;
		gap: 16px;
	}

	.cadastro {
		font-size: 90px;
		text-align: center;
		margin-bottom: -15px;
		margin-top: 60px;
		font-weight: normal;
	}

	.user-icon {
		margin: 0 auto;
		width: 90px;
		height: 90px;
	}


	/* ===========================
      INPUTS UX DE VERDADE
  ============================ */
	.input-box {
		display: flex;
		align-items: center;
		gap: 10px;

		padding: 14px 12px;
		border-radius: 12px;

		height: 56px;
	}

	.input-box i {
		font-size: 18px;
	}

	.input-box input {
		width: 100%;
		font-size: 17px;
		padding: 10px 6px;

		/* + acessível */
		caret-color: inherit;
		border: none;
		outline: none;
	}

	.toggle-password {
		font-size: 18px;
		cursor: pointer;
		padding: 4px;
	}

	input::placeholder {
		opacity: 0.8;
	}


	/* ===========================
      REGRAS SENHA
  ============================ */
	#password-rules {
		font-size: 14px;
		padding-left: 18px;
		display: flex;
		flex-direction: column;
		gap: 3px;
	}

	#password-rules li {
		line-height: 1.35;
	}



	/* ===========================
      BOTÃO
  ============================ */
	.btn-missao {
		width: 50%;
		padding: 15px 0;
		font-size: 20px;
		font-weight: normal;
		border-radius: 25px;
		text-align: center;
		margin-top: 10px;

		transition: transform .15s ease;
	}

	.btn-missao:active {
		transform: scale(.96);
	}



	/* ===========================
      LINK LOGIN
  ============================ */
	.signup {
		text-align: center;
		margin-top: 14px;
		font-size: 20px;
		margin-bottom: -20px;
	}

	.signup a {
		font-weight: normal;
	}



	/* ===========================
      ERROS
  ============================ */
	.alert {
		border-radius: 10px;
		font-size: 14px;
		max-width: 440px;
		margin: 0 auto 12px;
	}

	.alert i {
		font-size: 18px;
	}

}
/* ============================
   FOOTER - MOBILE
============================ */
@media (max-width: 600px) {
    .footer {
        padding: 8px 6px;
        font-size: 14px;
    }

    .footer-logo {
        font-size: 18px !important;
    }

    .footer p {
        font-size: 10px;
        margin: 3px 0;
    }

    .footer span {
        font-size: 10px;
    }

    .social-icons img {
        width: 16px;
        height: 16px;
    }

    .social-icons {
        gap: 8px;
        margin-top: 6px;
    }
}