/* Mini-Reset */
*,
*::before,
*::after {
	box-sizing: border-box;
}

* {
	margin: 0;
}

input,
button,
textarea,
select {
	font: inherit;
}


/* body */
.caruso-login-page {
	font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
	font-size: 1rem;
	line-height: 1.5;
	color: #333;
	/* background-color: #f5f5f5; */
	font-synthesis: none;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	margin: 0;
	line-height: 1.6;
	min-height: 100dvh;
	/* background-color: hsl(220, 30%, 10%);
	background-image: radial-gradient(80vw 20vw ellipse at bottom right, hsl(210, 90%, 32%, 0.2), transparent); */
	background-color: hsl(220 10% 96%);
	/* background-image: radial-gradient(70vw 30vw ellipse at bottom right, hsl(53.88deg 100% 61.57% / 97%), transparent); */
	/* background-image: radial-gradient(90vw 60vw ellipse at bottom right, hsl(339.61deg 82.19% 51.57% / 22%), transparent); */
	background-blend-mode: soft-light;
	background-repeat: no-repeat;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	padding-top: 15vh;
}

.caruso-login-logo {
	margin-bottom: 2rem;
	display: flex;
	justify-content: center;
	align-items: center;

	img {
		max-width: 100%;
	}
}

/* form */
.caruso-login {
	width: 100%;
	max-width: 400px;
	padding: 2rem 2rem;
	background-color: hsl(220, 50%, 100%);
	border-radius: 2rem;
	box-shadow: rgba(0, 0, 0, 0.06) 0px 20px 25px -5px, rgba(0, 0, 0, 0.02) 0px 10px 10px -5px;
}

h1 {
	/* gradient-text */
	color: rgba(0, 0, 0, 0.7);
	font-size: 1.25rem;
	margin: 0;
	margin-bottom: 1rem;
	text-align: center;
}

label {
	font-weight: 500;
	font-size: 0.875rem;
	padding-left: 2px;
	color: rgba(0, 0, 0, 0.7);
}

input {
	width: 100%;
	font-size: 1rem;
	padding: 0.5rem;
	margin-bottom: 1rem;
	background-color: hsl(220, 50%, 95%);
	/* border: 1px solid hsla(0, 0%, 0%, 0.06); */
	border: 1px solid transparent;
	border-radius: 0.5rem;
}

button {
	width: 100%;
	padding: 0.75rem;
	font-weight: 600;
	margin-top: 0.75rem;
	margin-bottom: 0.5rem;
	background-color: hsl(220, 70%, 48%);
	transition: background-color 0.2s;
	color: #fff;
	border: none;
	border-radius: 25rem;
	cursor: pointer;

	&:hover,
	&:focus {
		background-color: hsl(220, 70%, 50%);
	}
}

a {
	margin-top: 0.5rem;
	display: block;
	text-align: center;
	font-size: 0.875rem;
	text-decoration: none;
	font-weight: 500;
	color: hsl(220, 70%, 48%);
}


button.is-loading {
	color: transparent;
	pointer-events: none;
	position: relative;

	&::after {
		content: '';
		display: block;
		position: absolute;
		top: 50%;
		left: 50%;
		margin-top: -0.75em;
		margin-left: -0.75em;
		width: 1.5em;
		height: 1.5em;
		border-radius: 50%;
		border: 2px solid transparent;
		border-top-color: #fff;
		border-right-color: #fff;
		animation: button-loading 0.5s linear infinite;
	}
}

.error-msg {
	color: hsl(0, 100%, 50%);
	font-size: 0.875rem;
	margin-top: -0.2rem;
	text-align: center;
	margin-bottom: 0.5rem;
	font-weight: 500;
}


.caruso-login-dummycontrols {
	position: fixed;
	bottom: 0;
	left: 0;
	background-color: hsl(220 10% 96%);
	z-index: 1000;
	box-shadow: rgba(0, 0, 0, 0.06) 0px 20px 25px -5px, rgba(0, 0, 0, 0.02) 0px 10px 10px -5px;
	padding: 1rem;
}

@-webkit-keyframes button-loading {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}

@keyframes button-loading {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}