@import "../../app/public/css/functions.less";


* {
	margin: 0;
	padding: 0;
	backdrop: #0005;
	box-sizing: border-box;
}


html {
	background: #000;
}

::backdrop {
	background: #000B;
}

#login {
	display: block;
	width: 100%;
	height: 100vh;
	background-size: cover;
	font-family: Arial;

	dialog {
		.grid(1fr auto; 10px; start);
		background: none;
		color: #FFF;
		width: 100%;
		max-width: 650px;
		margin: auto;
		border: none;
		border-radius: 5px;
		box-shadow: 0 5px 5px -5px #000;
		transition: all .7s;
		transform: translateY(-100vh);

		#loginClose {
			filter: invert(100%);
		}

		.tela {
			display: grid;
			grid-template-columns: 230px 1fr;
			background: linear-gradient(#1258A0, #5112A0);

			> div {
				padding: 60px 30px;
				text-align: center;

				#logo {
					display: block;
					width: 40%;
					margin: 0 auto;
					filter: grayscale(100%) brightness(1) invert(100%);
				}

				#imgUser {
					width: 120px;
					height: 120px;
					border-radius: 60px;
					overflow: hidden;
					margin: 10px auto;
					img {
						width: 120px;
						height: 120px;
						object-fit: cover;
					}
				}

				&:first-child {
					text-align: left;
					
					span {
						display: block;
						margin-top: 10px;
						font-size: 1.5em;
						text-align: center;
					}
					p {
						opacity: 80%;
						font-size: .9em;
						text-align: center;
						&:nth-child(3) {
							margin-top: 50%;
						}
						&:nth-child(4) {
							font-size: .71em;
						}
					}
				}

				#hora {
					margin-top: 5px;
					font-size: 2.7em;
					opacity: 80%;
					transform: translateX(-4px);
				}

				&:last-child {
					background: #FFF;
					border-radius: 5px;
					color: #123;

					#formAuth {
						div {
							.grid(1fr; 10px);
							fieldset {
								border-radius: 3px;
								border: 1px solid #678;

								legend {
									font-size: .85em;
									margin: 0 10px;
									padding: 3px;
									color: #567;
								}
								input[type=text],
								input[type=password] {
									border: none;
									padding: 0px 12px 8px 12px;
									width: calc(100% - 5px);
									background: none;
									font-size: 1.1em;
									&:focus {
										outline: none;
										border-color: #069;
										color: #069;
									}
								}
							}
							p {
								margin: -3px 0;
								color: #D03;
								font-size: .85em;
								display: none;
							}
							input[type=button] {
								.botao(#123);
								padding: 12px 5px;
								font-size: 1em;
							}
							#return-usuario {
								.grid(auto 1fr; 5px);
								color: #2044D1;
								border: 1px solid #2044D1;
								padding: 8px 5px;
								border-radius: 3px;
								text-align: left;
								cursor: pointer;
								&:hover {
									opacity: 70%;
								}
							}
						}

						#bemVindo {
							font-size: 1.5em;
							margin-top: 50px;
							opacity: 80%;
							span {
								font-size: .8em;
							}
						}
					}
				}
			}
		}
	}
}
