@charset 'UTF-8';

/*
	Verde: 49A09D
	Lilás: 5F2C82
*/

:root {
	--primary-color: #49A09D;
	--secondary-color: #5F2C82;
}

* {
	margin: 0;
	padding: 0;
	font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
	box-sizing: border-box;
}

html, body {
	width: 100vw;
	height: 100dvh;
	background-color: var(--secondary-color);
}

main {
	width: 100vw;
	height: 100dvh;
	display: flex;
	flex-flow: row nowrap;
	justify-content: center;
	align-items: center;
}

section#login {
	width: 250px;
	height: 500px;
	background-color: #FFFFFF;
	box-shadow: 0 0 10px #00000045;
	border-radius: 20px;
	overflow: hidden;
	transition: width .3s, height .3s;
	transition-timing-function: ease;
}

section#login > div#image {
	height: 200px;
	background: url('./images/metal.jpg') no-repeat left bottom;
	background-size: cover;
}

section#login > div#form {
	padding: 10px;
}

section#login > div#form > h1 {
	margin-bottom: 10px;
	text-align: center;
}

section#login > div#form > p {
	font-size: 0.8em;
}

section#login > div#form div.fields {
	margin: 5px 0;
	width: 100%;
	height: 40px;
	background-color: var(--secondary-color);
	border: 2px solid var(--secondary-color);
	border-radius: 8px;
}

section#login > div#form div.fields > svg {
	padding: 5px;
	font-size: 2em;
	width: 40px;
	height: 100%;
	color: #FFFFFF;
}

section#login > div#form div.fields > input {
	padding: 4px;
	font-size: 1em;
	width: calc(100% - 44px);
	height: 100%;
	background-color: #94CFCD;
	border: 0;
	border-radius: 8px;
	transform: translateY(-14px);
}

section#login > div#form div.fields > input:focus-within {
	background-color: #FFFFFF;
}

section#login > div#form div.fields > label {
	display: none;
}

section#login > div#form input[type="submit"],
section#login > div#form a.buttons {
	font-size: 1em;
	width: 100%;
	height: 40px;
	display: block;
	background-color: var(--primary-color);
	border-radius: 5px;
	cursor: pointer;
	transition: all .3s ease;
}

section#login > div#form input[type="submit"] {
	color: #FFFFFF;
	border: none;
}

section#login > div#form input[type="submit"]:hover {
	background-color: #266967;
}

section#login > div#form a.buttons {
	margin-top: 5px;
	padding: 5px;
	text-align: center;
	text-decoration: none;
	background-color: transparent;
	color: #266967;
	border: 1px solid var(--primary-color);
}

section#login > div#form a.buttons:hover {
	background-color: #046663;
	color: #FFFFFF;
}

section#login > div#form a.buttons > svg {
	font-size: 0.8em;
}