/* 1) Variáveis de tema */
:root {
	--color-teal-light: rgba(0, 152, 162, 0.8);
	--color-teal-dark: rgba(4, 137, 145, 0.8);
	--color-gradient: radial-gradient(circle at center, rgba(255, 255, 255, 0.2) 0%, transparent 80%),
		conic-gradient(from 45deg, rgba(255, 255, 255, 0.05) 0deg, rgba(255, 255, 255, 0.3) 20deg, transparent 60deg, rgba(255, 255, 255, 0.1) 100deg),
		radial-gradient(circle at center, var(--color-teal-light) 0%, var(--color-teal-dark) 100%);
	--color-highlight: rgb(255, 244, 244);
	--color-activated: #09b9b9;
	--color-error: #FF0000;
	--color-text: #ffffff;
	--color-false-black: #0a6e75;
	--font-base: 'Jost', sans-serif;
}

/* 2) Reset & full-screen */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html,
body {
	width: 100%;
	height: 100%;
	font-family: var(--font-base);
	background: var(--color-gradient);
	display: flex;
	align-items: center;
	justify-content: center;
}

/* 3) Card “glassmorphism” */
.card-container {
	width: 400px;
	padding: 2rem;
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.15);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.25);
	text-align: center;
	color: var(--color-text);
}

.logo {
	width: 15rem;
	margin-bottom: 1.5rem;
}

.card-container h1 {
	font-size: 1.8rem;
	margin-bottom: 2rem;
	color: var(--color-highlight);
}

/* 5) Floating labels */
.form-group {
	position: relative;
	margin-bottom: 1.5rem;
	text-align: left;
}

.form-group input {
	width: 100%;
	padding: 1rem 0.75rem;
	background: rgba(255, 255, 255, 0.3);
	border: none;
	border-radius: 0.4rem !important;
	color: var(--color-false-black);
	font-size: 1rem;
	transition: background 0.3s, box-shadow 0.3s;
	margin: 0;
}

.form-group input::placeholder {
	color: transparent;
	/* habilita :placeholder-shown */
}

.form-group input:focus {
	background: rgba(255, 255, 255, 0.5);
	outline: none;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.form-group label {
	position: absolute;
	top: 50%;
	left: 0.75rem;
	transform: translateY(-50%) scale(1);
	transform-origin: left top;
	pointer-events: none;
	transition: top 0.2s ease-out, transform 0.2s ease-out, font-size 0.2s, font-weight 0.3s ease;
	color: rgba(255, 255, 255, 0.8);
	font-size: 1rem;
	font-weight: bold;
}

.form-group input:focus+label,
.form-group input:not(:placeholder-shown)+label,
.form-group input:active+label {
	top: 0;
	transform: translateY(-85%) scale(0.85);
	font-size: 1rem;
	color: var(--color-highlight);
	font-weight: normal;
}

.toggle-eye {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	cursor: pointer;
	font-size: 1.2rem;
	color: #f5f5f5;
}


/* 6) Botão principal */
.btn-act {
	width: 100%;
	/* background: rgb(6, 153, 132); */
	border: none;
	border-radius: 0.4rem;
	font-size: 1rem;
	font-weight: 600;
	color: #fff;
	cursor: pointer;
	text-transform: uppercase;
	letter-spacing: 1px;

	padding: 1rem 0.75rem;
	background: #e6e6e6;
	color: var(--color-false-black);
	transition: background 0.3s, box-shadow 0.3s, color 0.3s ease;
	margin: 0;
}

.btn-act:hover {
	background: rgba(7, 146, 123, 0.9);
	cursor: pointer;
	color: white;
}

.btn-act:disabled {
	background: #e6e6e6;
	color: var(--color-false-black);
	cursor: not-allowed;
	opacity: 0.4;
}

/* 7) Mensagem de erro */
.error-msg {
	color: var(--color-error);
	font-size: 0.9rem;
	margin-top: 0.5rem;
	display: none;
}

.error-msg-custom {
	color: var(--color-error);
	font-size: 0.9rem;
	margin-top: 0.5rem;
}

.success-msg {
	color: var(--color-activated);
	font-size: 0.9rem;
	margin-top: 0.5rem;
	display: none;
}

.success-msg-custom {
	color: var(--color-activated);
	font-size: 0.9rem;
	margin-top: 0.5rem;
}

/* 8) Link “esqueci a senha” */
.forgot-password {
	display: block;
	margin-top: 1rem;
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.8);
	text-decoration: none;
	transition: color 0.2s;
}

.forgot-password:hover {
	color: var(--color-highlight);
	text-decoration: underline;
}

.resend {
	display: inline-block;
	margin-top: 20px;
	color: var(--color-false-black);
	cursor: pointer;
	text-decoration: none;
	font-weight: 700;
}

.resend[disabled] {
	color: #aaa;
	pointer-events: none;
}

#teste-g {
	display: flex;
	justify-content: center;
}

/* 9) Responsivo */
@media (max-width: 400px) {
	.card-container {
		width: 90%;
		padding: 1.5rem;
		border-radius: 12px;
	}

	.card-container h1 {
		font-size: 1.5rem;
	}

	#teste-g {
		transform: scale(90%);
		transform-origin: 0 0;
	}
}