* {
	box-sizing: border-box;
}

body {
	margin: 0;
	padding: 0;
}

.LoginContainer {
	width: 100vw;
	height: 100vh;
	padding: 1.5rem;
	box-sizing: border-box;
	background: url("assets/background.svg") no-repeat center/cover;
	display: flex;
	align-items: center;
	justify-content: center;
}

.LoginWrapper {
	display: flex;
	height: 88vh;
	width: 100%;
	max-width: 1776px;
	background: white;
	border-radius: 0.5rem;
	overflow: hidden;
	box-shadow: 0 1px 5px #00b6aa10;
	border: 1px solid rgba(0, 0, 0, 0.05);
}

.LoginImageCover {
	width: 45%;
	min-width: 300px;
	background: url("assets/Adesivo-BOX.svg") no-repeat center/cover;
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center;
}

@media (min-width: 1440px) {
	.LoginImageCover {
		width: 45%;
		min-width: 350px;
	}
}

.LoginContent {
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: 1.2rem;
	z-index: 1;
	background: rgba(255, 255, 255, 0.95);
	box-shadow: 0 1px 5px #00b6aa10;
	height: 100%;
	min-height: 0;
}

.LoginContentWrapper {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	overflow-y: auto;
	padding-right: 0.5rem;
	position: relative;
}

.LoginTitleContainer {
	display: flex;
	margin-top: 4rem;
	flex-direction: column;
	margin-bottom: 1rem;
	flex-shrink: 0;
}

.LoginTitleContainer h1,
.LoginTitleContainer p {
	font-family: "Inter", sans-serif;
	margin: 0;
	padding: 0;
}

.LoginTitleContainer h1 {
	font-size: clamp(2.2rem, 4.5vw, 2.8rem);
	margin-bottom: 0.6rem;
	font-weight: bold;
	color: #333;
}

.LoginTitleContainer p {
	font-size: clamp(1.3rem, 3.2vw, 1.6rem);
	color: #5a5a5a;
}

.LoginForm {
	display: flex;
	flex-direction: column;
	gap: 2rem;
	padding-top: 6rem;
	width: 100%;
	max-width: 900px;
	flex: 1;
	min-height: 0;
	position: relative;
	z-index: 1;
}

.form_content {
	display: flex;
	flex-direction: column-reverse;
	gap: 0.5rem;
	position: relative;
}

.form__label,
.form__input {
	font-family: "Inter", sans-serif;
	font-size: 0.95rem;
}

.form__label {
	margin-left: 0.9rem;
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	transform: translateY(-50%) scale(1);
	color: #77797b;
	position: absolute;
	top: 50%;
	left: 0;
	pointer-events: none;
	background-color: transparent;
}

.form__input {
	color: #77797b;
	padding: 0.7rem 1.1rem;
	border-radius: 0.4rem;
	background-color: rgba(255, 255, 255, 0.9);
	width: 100%;
	display: block;
	transition: all 0.2s;
	border: 1px solid #00b6aac7;
	font-size: 1rem;
	line-height: 1.4;
}

.form__input:focus+.form__label,
.form__input:not(:placeholder-shown)+.form__label,
.form__input:-webkit-autofill+.form__label {
	transform: translateY(-2.2rem) scale(0.85);
	color: #00b6a9;
	background-color: white;
	padding: 0 0.3rem;
}

.form__input:focus {
	border: 1px solid #00b6a9;
	outline: none;
	box-shadow: 0 0 0 1px rgba(0, 182, 169, 0.1);
	background-color: white;
}

.form__input::placeholder {
	color: transparent;
}

.form__input:disabled {
	color: #a1a1a1;
	cursor: not-allowed;
	opacity: 0.7;
}

/* Remove autofill blue background */
.form__input:-webkit-autofill,
.form__input:-webkit-autofill:hover,
.form__input:-webkit-autofill:focus,
.form__input:-webkit-autofill:active {
	-webkit-box-shadow: 0 0 0 30px white inset !important;
	-webkit-text-fill-color: #77797b !important;
	transition: background-color 5000s ease-in-out 0s;
}

.LoginFooter {
	margin-top: 1rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	position: relative;
	z-index: 2;
}

.footer-buttons {
	display: flex;
	gap: 1rem;
	align-items: center;
}

button[type="submit"] {
	padding: 0.7rem 2.2rem;
	border: none;
	border-radius: 2rem;
	background-color: #00b6a9;
	color: white;
	font-size: 1rem;
	font-weight: 600;
	box-shadow: 0 2px 4px rgba(0, 182, 169, 0.15);
	transition: all 0.2s ease;
	width: 100%;
	max-width: 150px;
	position: relative;
	z-index: 2;
	cursor: pointer;
}

.signup-button {
	color: #00b6a9;
	white-space: nowrap;
	text-decoration: none;
	font-size: 1rem;
	font-weight: 600;
	transition: color 0.2s ease;
	opacity: 0.8;
}

.signup-button:hover {
	color: #009688;
	opacity: 1;
}

a {
	font-family: "Inter", sans-serif;
	color: #5a5a5a;
	text-decoration: none;
	font-size: 1rem;
	transition: color 0.2s ease;
}

a:hover {
	color: #00b6a9;
}

#loginError {
	font-family: "Inter", sans-serif;
	color: #dc3545;
	margin-top: 1.2rem;
	text-align: left;
	font-size: 1rem;
	display: none;
	width: 100%;
}

@media (max-width: 768px) {
	.LoginContainer {
		padding: 1rem;
		height: 100vh;
	}

	.LoginWrapper {
		height: 95vh;
		flex-direction: column-reverse;
		margin: 0;
	}

	.LoginImageCover {
		background: url("assets/vtt-logo.png") no-repeat center/cover;
		max-height: 22vh;
		transform: scale(0.4);
		height: 100%;
		width: 100%;
		flex-shrink: 0;
	}

	.LoginContent {
		padding: 1rem;
		height: auto;
		min-height: 0;
		flex: 1;
	}

	.LoginContentWrapper {
		padding-right: 0;
		height: auto;
		min-height: 0;
	}

	.LoginTitleContainer {
		margin-bottom: 0.8rem;
	}

	.LoginForm {
		gap: 2.6rem;
		padding-bottom: 0.5rem;
	}

	.LoginFooter {
		flex-direction: column;
		align-items: flex-start;
		gap: 1rem;
	}

	.footer-buttons {
		flex-direction: column;
		width: 100%;
		gap: 0.8rem;
	}

	button[type="submit"] {
		width: 100%;
		max-width: none;
	}

	.signup-button {
		text-align: center;
		width: 100%;
		padding: 0.5rem 0;
	}
}

@media (max-height: 600px) {
	.LoginWrapper {
		height: 98vh;
	}

	.LoginImageCover {
		min-height: 100px;
	}

	.LoginContent {
		padding: 0.8rem;
	}

	.LoginForm {
		padding-top: 3rem;
		gap: 1.7rem;
	}

	.LoginTitleContainer {
		margin-bottom: 0.5rem;
	}

	.form__input {
		padding: 0.5rem 0.8rem;
	}
}

.password-container {
	position: relative;
}

.password-toggle {
	position: absolute;
	right: 1.1rem;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	color: #77797b;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	transition: color 0.2s ease;
}

.password-toggle:hover {
	color: #00b6a9;
}

.password-toggle i {
	font-size: 1.3rem;
}

.password-container .form__input {
	padding-right: 3rem;
}