/* Generic styles */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	border: 0 solid;
	background-color: transparent;
}
html {
	line-height: 1.5;
	-webkit-text-size-adjust: 100%;
	tab-size: 4;
	font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
	font-feature-settings: normal;
	font-variation-settings: normal;
	--app-height: 100svh;
}
input, button {
	font: inherit;
	font-feature-settings: inherit;
	font-variation-settings: inherit;
	font-feature-settings: inherit;
	font-variation-settings: inherit;
	letter-spacing: inherit;
}
::placeholder{opacity:1;color:color-mix(in oklab, currentColor 50%, transparent)}
.hidden{display:none!important}
a,a:hover{text-decoration:none}

/* Theme Switcher styles */
#theme {
	position: absolute;
	top: 0;
	right: 0;
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	svg {
		width: 24px;
		height: 24px;
		stroke: oklch(62.3% 0.214 259.815);
		&:where(.dark *){stroke:white}
		path:first-child {
			fill: color-mix(in oklab, oklch(70.7% 0.165 254.624) 20%, transparent)
			&:where(.dark *){fill:color-mix(in oklab,white 10%,transparent)}
		}
	}
}

/* Page styles */
html, body {
	width: 100vw;
	height: 100%;
	@media (width >= 40rem) {
		height: 100vh;
	}
}

body {
	color: black;
	background: linear-gradient(-45deg, #f7eede 0%, #e9efe9 25%, #eef7ff 50%, #f2f4ef 75%, #f8f8f6 100%);
	&:where(.dark *) {
		background: linear-gradient(-45deg, #0f0c29, #302b63, #24243e, #1a1a2e, #16213e, #0f3460);
		color: white;
	}
}

.glass-card {
	background-color: #ffffff26;
	border: 1px solid #ffffff9f;
	border-radius: 24px;
	box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 32px rgba(31, 38, 135, 0.15);
	&:where(.dark *) {border-color:#ffffff33}
}

.form {
	position: absolute;
	top: calc(var(--app-height) / 2);
	left: 50%;
	translate: -50% -50%;
	z-index: 1;
	padding: 20px 32px;
	gap: 12px;
	display: grid;
	width: 310px;
	backdrop-filter: blur(16px) saturate(180%);
}

h1 {
	font-weight: 700;
	color: black;
	text-align: center;
    font-size: 30px;
    line-height: 1.2;
	font-variant: all-petite-caps;
	&:where(.dark *){color:white}
}

input {
	width: 100%;
	padding: 8px 20px;
	color: #0f172b;
	outline: none;

	&:focus{border-color:oklch(68.5% 0.169 237.323)}
	&:where(.dark *) {
		color: #f1f5f9;
	}
}

a {
	color: #e12afb;
	cursor: pointer;
	font-weight: bold;
	&:where(.dark *){color:oklch(83.3% 0.145 321.434)}
}

.btn-row {
	display: flex;
	justify-content: space-between;
}

.btn {
	font-weight: 500;
	border: 1px solid #ffffff4d;
	box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 32px rgba(31, 38, 135, 0.15);
    border-radius: 16px;
	background-color: #ffffff26;
	color: inherit;
	padding: 8px 20px;
	cursor: pointer;

	&:hover {
		box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 32px rgb(31 38 135 / 0.2), inset 0 4px 20px rgb(255 255 255 / 0.15);
		translate: 0px -2px;
	}
	&:active{scale:95%}
	&:disabled{cursor:auto}
	&:where(.dark *){border-color:#ffffff1a}
}

input, .btn {&:not(:where(.dark *)){background-color:#ffffffc0}}

::selection {
	background-color: oklch(68.5% 0.169 237.323);
	color: white;
}
.dark ::selection {
	background-color: oklch(71.5% 0.143 215.221);
}

.logo {
	line-height: 0;
	margin-inline: auto;
	user-select: none;
	color: black;
	&:where(.dark *){color:white}
}

.logo > svg {
	width: 56px;
	height: 56px;
}

.notice {
	p {
		text-align: center;
		font-weight: 700;
		color: #fb2c36;
		&:where(.dark *){color:salmon}
	}
	a {
		color: oklch(62.3% 0.214 259.815);
		&:where(.dark *){color:oklch(80.9% 0.105 251.813);}
		&:hover {
			text-decoration: underline;
		}
	}
}

.btn,
.form {
    transition-property: transform, translate, scale, rotate, top;
	transition-duration: 200ms;
	transition-timing-function: var(--transition-timing);
}

@keyframes float {
	0%, 100% { transform: translate(0, 0) scale(1); }
	25% { transform: translate(30px, -40px) scale(1.05); }
	50% { transform: translate(-20px, 20px) scale(0.95); }
	75% { transform: translate(15px, 35px) scale(1.02); }
}

.orbs {
	position: fixed;
	width: 100%;
	height: 100lvh;
	inset: 0;
	overflow: hidden;

	> * {
		position: absolute;
		border-radius: calc(infinity * 1px);
		opacity: 40%;
		filter: blur(80px);
		animation: float 12s ease-in-out infinite;

		&:nth-child(1) {
			animation-delay: 0s;
			background: radial-gradient(circle, #aebaf3, #e4d5f3);
			&:where(.dark *){background:radial-gradient(circle,#667eea,#764ba2)}
			width: 500px;
			height: 500px;
			left: -100px;
			top: -100px;
			@media (width >= 40rem) {
				width: 800px;
				height: 800px;
				left: 10%;
			}
		}

		&:nth-child(2) {
			background: radial-gradient(circle, #ebb9f1, #ff93a1);
			animation-delay: -4s;
			&:where(.dark *){background:radial-gradient(circle,#f4cff9,#ffb3bd)}
			width: 400px;
			height: 400px;
			right: -80px;
			top: 50svh;
			@media (width >= 40rem) {
				width: 640px;
				height: 640px;
				right: 0;
			}
		}

		&:nth-child(3) {
			background: radial-gradient(circle, #8fcbff, #b3fbff);
			animation-delay: -8s;
			&:where(.dark *){background:radial-gradient(circle,#4facfe,#00f2fe)}
			width: 350px;
			height: 350px;
			left: 20%;
			top: 90svh;
			@media (width >= 40rem) {
				width: 600px;
				height: 600px;
			}
		}

		&:nth-child(4) {
			background: radial-gradient(circle, #98f5b7, #c5fff5);
			animation-delay: -6s;
			&:where(.dark *){background:radial-gradient(circle,#43e97b,#38f9d7)}
			width: 300px;
			height: 300px;
			left: 50%;
			top: 20svh;
			@media (width >= 40rem) {
				width: 500px;
				height: 500px;
			}
		}
	}
}
