@font-face {
	font-family: 'Montserrat';
	src: url('./fonts/montserrat/Montserrat-ExtraLight.woff2') format('woff2');
}

* {
	padding: 0;
	margin: 0;
}

html, body {
	width: 100vw;
	height: 100vh;
}

body {
	background-color: rgb(7, 32, 51);
    background: linear-gradient(to bottom, #0e4166, rgb(7, 32, 51));
	font-family: "Montserrat";
	color: #fff;
	font-weight: 200;
}

h1 {
	font-weight: 300;
}

h1>.anim {
	display: inline-block;
}

#bg-anim {
	position: absolute;
	top: 0; left: 0;
    width: 100%; height: 100%;
	box-sizing: border-box; display: block;
}

main {
	position: absolute;
	top: 0; left: 0;
	height: 100%; width: 100%;
	/* padding: 2vw; */
	/* display: flex; */
	/* align-items: center; */
	/* justify-content: center; */
	/* overflow: auto; */
}

div.logo {
	height: 60%;
	width: 100%;
	position: absolute;
	top: 20%;
	/* aspect-ratio: .67/1; */
	background-image: url(welcome/bubl-logo.svg);
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
	/* opacity: .85; */
	opacity: 0;
	transition: .5s ease-in-out;
}


.the-form {
	position: absolute;
	width: 100%;
	top: 20%;
	opacity: 0;
	height: 60%;
	transition: opacity .5s ease-in-out;
	pointer-events: none;
}

.the-form.active {
	pointer-events: auto;
	opacity: 1;
}

.the-form>.panel {
	width: 100%; height: 100%;
	padding: 2em 1em 2em 1em;
	border-radius: 1em;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1em;
}

.the-form>.panel .content {
	width: 480px;
	max-width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1em;
}

.the-form>.panel h1,
.the-form>.panel h2,
.the-form>.panel h3,
.the-form>.panel h4 {
	text-align: center;
}

form {
	width: 480px;
	max-width: 100%;
	display: flex;
	flex-direction: column;
	gap: 1em;
	position: relative;
}

form select, form input, form textarea {
    outline: none;
	border-radius: 1em;
	border: 1px solid rgba(255,255,255,.25);
	outline: 1px solid transparent;
	/* background-color: transparent; */
    background-color: rgba(255, 255, 255, .05);
    padding: 6px 1em;
    transition: .5s;
	color: #fff;
}

form textarea:focus, form input:focus {
    /* outline-color: #adf; */
    border-color: #adf;
}

form textarea.error, form input.error {
	border-color: #ba1531;
}


form>fieldset {
	display: flex;
	flex-direction: column;
	gap: 1em;
	border: 1px solid rgba(255,255,255,.25);
	border-radius: 1em;
	padding: 1em;
}

form>fieldset>legend {
	font-weight: 600;
	padding: 0 4px;
	width: max-content;
}

form>fieldset>p,
form>p {
	display: flex;
	align-items: center;
	gap: 1em;
}

form>fieldset>p>label,
form>p>label {
	width: 140px;
}

form>fieldset>p>input,
form>p>input {
	flex: 1;
	font-weight: bold;
}

footer {
	position: absolute;
	bottom: 0;
	right: 0;
	padding: 1em;
}

div.spacer {
	flex: 1;
}

*[data-action] {
	transition: .3s ease-in-out;
	cursor: pointer;
}

*[data-action]:hover {
	scale: 1.15;
}

[data-action="forgotten"],
[data-action="back"]:not(.logo) {
	font-weight: bold;
	display: flex;
	align-items: center;
	justify-content: center;
	/* background-color: #6EC3F8; */
	padding: .25em 0;
	
	color: #6EC3F8;
}

[data-action="forgotten"]:hover,
[data-action="back"]:not(.logo):hover {
	color: #3E93C8;
	color: #adf;
}

[data-action="signup"] {
	margin-top: 1em;
	margin-bottom: 2em;
}


.button {
	color: #fff;
	text-decoration: none;
	font-weight: bold;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #6EC3F8;
	padding: .25em 1em;
	border-radius: 1em;
    /* background-image: linear-gradient(to bottom, #6EC3F8, #4EA3D8); */
    /* background-image: linear-gradient(to bottom, #6EC3F8, #2E6398); */
    background-image: linear-gradient(to bottom, #8EE3F8, #269);
}

.error-popup {
	position: absolute;
	background: #ba1531e0;
	border-radius: 1em;
	padding: 1em;
	bottom: calc(100% + 12px);
	width: max-content;
	height: max-content;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	flex-direction: column;
	gap: .5em;
	align-items: center;
	justify-content: center;
	font-weight: bold;
	transition: opacity .5s;
	opacity: 0;
}

.error-popup:after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	width: 0;
	height: 0;
	border: 8px solid transparent;
	border-top-color: #ba1531e0;
	border-bottom: 0;
	margin-left: -8px;
	margin-bottom: -8px;
}


.loader {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	display: inline-block;
	position: absolute;
    top: calc(50% - 32px); left: calc(50% - 32px);
	background: linear-gradient(0deg, #3E93C850 33%, #6EC3F8 100%);
	box-sizing: border-box;
	animation: rotation 1s linear infinite;
	transition: opacity .3s;
	opacity: 0;
}


.loader::after {
	content: '';  
	box-sizing: border-box;
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: rgba(7, 32, 51, .7);
}

@keyframes rotation {
	0% { transform: rotate(0deg) }
	100% { transform: rotate(360deg)}
}
