﻿.auth-main {
	text-rendering: optimizeLegibility;
	font-family: "Avenir Next", Avenir, -apple-system, BlinkMacSystemFont, Roboto, Helvetica, sans-serif;
	width: 100%;
	height: 100%;
	position: fixed;
	left: 0;
	top: 0;
}

.auth-main > * {
	height: 100%;
	width: 100%;
	position: fixed;
	top: 0;
	left: 0;
}

.auth-background {
	background: radial-gradient(#40404b, #111118) rgba(34, 34, 40, 0.94);
	opacity: 0;
	z-index: -1;
	transition: opacity 0.2s ease-in 0.4s;
}

@media screen and (max-width: 480px) {
	.auth-background {
		display: none;
	}
}

.auth-main.auth-opened .auth-background {
	opacity: 0.9;
	transition: opacity 0.3s ease-in 0s;
}

.auth-content {
	display: grid;
	align-items: center;
	justify-items: center;
}

.auth-content input {
	font-size: 13px;
	height: 40px;
	width: 100%;
	padding: 0 14px;
	border: 0;
	border-radius: 0 2px 2px 0;
	margin: 0;
	box-sizing: border-box;
}

.auth-content input:focus, .auth-content button:focus {
	outline: none;
}

.auth-content fieldset {
	width: 100%;
	padding: 0;
	margin: 0;
	border: none;
}

.auth-content svg {
	overflow: hidden;
	background-color: transparent;
}

.auth-content form {
	background: white;
	width: 300px;
	display: flex;
	flex-flow: column nowrap;
	align-items: stretch;
	border-radius: 6px;
	opacity: 0;
	transform: translateY(100%) scale(0.8);
}

.auth-main.auth-opened .auth-content form {
	opacity: 1;
	transform: translateY(0%) scale(1);
}

@media screen and (min-width: 481px) {
	.auth-content form {
		transition: transform 0.4s, opacity 0.3s, -webkit-transform 0.4s;
	}

	.auth-main.auth-opened .auth-content form {
		box-shadow: 0 0 40px 4px #111118;
		transition: transform 0.6s, opacity 0.6s, -webkit-transform 0.6s;
		transition-delay: 0.5s;
	}
}

@media screen and (max-width: 480px) {
	.auth-content form {
		height: 100%;
		width: 100%;
		border-radius: 0;
	}
}

.auth-content form > :nth-child(3) {
	flex-grow: 1;
}

.auth-icon {
	display: inline-grid;
	align-items: center;
	justify-items: center;
}

.auth-icon svg {
	height: 14px;
	width: 12px;
}

.auth-header {
	height: 118px;
	padding: 11px;
	display: grid;
	align-items: center;
	justify-items: center;
	box-sizing: border-box;
	border-radius: 5px 5px 0 0;
	background: rgba(233, 233, 233, 0.8);
}

@media screen and (max-width: 480px) {
	.auth-header {
		border-radius: 0;
	}
}

.auth-header img {
	height: 58px;
	width: auto;
}

.auth-error {
	text-align: center;
	text-transform: uppercase;
	color: #fff;
	background: #ff3e00;
	padding: 10px;
	font-size: 11px;
	font-weight: 600;
}

.auth-form {
	padding: 20px;
	display: flex;
	flex-flow: row nowrap;
	align-items: center;
	box-sizing: border-box;
}

.auth-main.auth-loading .auth-form, .auth-main.auth-loading .auth-notice {
	opacity: 0.3;
	pointer-events: none;
}

.auth-notice {
	text-align: center;
	text-transform: uppercase;
	letter-spacing: 1px;
	font-size: 10px;
	color: rgba(0, 0, 0, 0.54);
	background: rgba(0, 0, 0, 0.03);
	padding: 10px 0;
}

.auth-notice span {
	vertical-align: bottom;
}

.auth-field {
	display: flex;
	flex-flow: row nowrap;
	align-items: stretch;
}

.auth-input {
	border: 1px solid #f1f1f1;
	border-radius: 3px;
	overflow: hidden;
	transition: border-color 0.8s;
}

.auth-input:focus-within {
	border-color: #a0a0a0;
}

.auth-email-label {
	background: #f1f1f1;
	width: 40px;
}

.auth-submit {
	background-color: rgb(0, 150, 209);
	width: 100%;
	padding: 14px;
	display: grid;
	align-items: center;
	justify-items: center;
	border: 0;
	border-radius: 0 0 5px 5px;
	box-sizing: border-box;
	cursor: pointer;
	overflow: hidden;
	transition: 0.2s ease-in-out;
}

.auth-main.auth-loading .auth-submit {
	background-color: #eee;
	cursor: initial;
	pointer-events: none;
	transition: background-color 0.5s ease;
}

.auth-submit:focus {
	box-shadow: inset 0 0 100px 20px rgba(0, 0, 0, 0.2);
}

.auth-submit[disabled] {
	background-color: #9b9b9b;
}

@media screen and (max-width: 480px) {
	.auth-submit {
		border-radius: 0;
	}
}

.auth-submit > * {
	grid-area: 1/1;
}

.auth-loading-icon {
	display: none;
}

.auth-main.auth-loading .auth-loading-icon {
	display: block;
	animation: fadeInDownBig 1s both;
}

.auth-loading-icon > :first-child {
	width: 30px;
	height: 30px;
	border-width: 2px;
	border-style: solid;
	border-color: rgba(0, 0, 0, 0.4) rgba(0, 0, 0, 0.4) rgba(0, 0, 0, 0.2) rgba(0, 0, 0, 0.2);
	opacity: 0.9;
	border-radius: 20px;
	animation: rotate 1s linear infinite;
}

.auth-main.auth-loading .auth-submit-icon {
	animation: fadeOutDownBig 1s both;
}

.auth-submit svg {
	display: block;
	transition: 0.2s ease-in-out;
}

.auth-submit:hover:not([disabled]) svg {
	transform: scale(1.05);
}

@keyframes fadeOutDownBig {
	0% {
		opacity: 1;
	}
	100% {
		opacity: 0;
		transform: translate3d(0, 2000px, 0);
	}
}

@keyframes fadeInDownBig {
	0% {
		opacity: 0;
		transform: translate3d(0, -2000px, 0);
	}
	100% {
		opacity: 1;
		transform: none;
	}
}

@keyframes rotate {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}
