/* Login and Sign-up page styles */

/* Login page styles */

:root {
	--bg: #f6f7f8;
	--text: #000000;
	--muted: #a8a8a8;
	--primary: #2a3647;
	--primary-hover: #29abe2;
	--card: #ffffff;
	--border: #d1d1d1;
	--shadow: 0 0 14px rgba(0, 0, 0, 0.08);
	--transition: 100ms ease-in-out;
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html,
body {
	width: 100%;
}

body {
	font-family: "Inter", sans-serif;
	background: var(--bg);
	color: var(--text);
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	overflow-x: hidden;
}

.skip-splash .login-splash,
.skip-splash .login-splash-logo,
.skip-splash .login-splash-logo-end {
	display: none;
}

.skip-splash .login-logo {
	opacity: 1;
}

.page-shell {
	width: 100%;
	max-width: 1440px;
	margin: 0 auto;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

/* Splash animation for the logo and overlay */

.login-splash {
	position: fixed;
	inset: 0;
	background: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 998;
	pointer-events: none;
}

.login-splash-logo {
	position: fixed;
	left: 50%;
	top: 50%;
	width: 100px;
	height: auto;
	transform: translate(-50%, -50%);
	transform-origin: center;
	z-index: 999;
	pointer-events: none;
}

.login-splash-logo-end {
	position: fixed;
	left: 50%;
	top: 50%;
	width: 100px;
	height: auto;
	transform: translate(-50%, -50%);
	transform-origin: center;
	z-index: 1000;
	pointer-events: none;
	opacity: 0;
}

a {
	text-decoration: none;
	color: inherit;
}

button,
input {
	font: inherit;
	border: unset;
	background: none;
}

button {
	cursor: pointer;
}

.login-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 64px 80px 0 80px;
}

.login-logo {
	width: 100px;
	height: auto;
	opacity: 0;
	animation: none;
}

.login-header-actions {
	display: flex;
	align-items: center;
	gap: 24px;
	font-size: 18px;
}

.login-header-signup {
	font-size: 16px;
	font-weight: 700;
}

.login-header-text {
	color: var(--text);
	font-size: 20px;
	font-weight: 400;
}

.login-main {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 32px 24px;
}

.login-card {
	width: 652px;
	background: var(--card);
	border-radius: 30px;
	box-shadow: var(--shadow);
	padding: 48px 64px 40px 64px;
	text-align: center;
}

.login-card h1 {
	font-size: 61px;
	font-weight: 700;
	letter-spacing: 0.5px;
}

.login-underline {
	width: 150px;
	height: 3px;
	background: var(--primary-hover);
	margin: 12px auto 32px auto;
	border-radius: 2px;
}

.login-form {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.input-field {
	position: relative;
	display: block;
}

.input-field input {
	width: 100%;
	height: 48px;
	padding: 0 48px 0 16px;
	border: 1px solid var(--border);
	border-radius: 10px;
	font-size: 20px;
	transition: border-color var(--transition);
}

.input-field input.input-error {
	border-color: #ff3d00;
}

.input-field input::placeholder {
	color: var(--muted);
}

.input-field input:focus {
	outline: none;
	border-color: var(--primary-hover);
}

.input-icon {
	position: absolute;
	top: 24px;
	right: 16px;
	transform: translateY(-50%);
	width: 24px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.input-icon.password-toggle {
	cursor: pointer;
}

.input-icon img {
	width: 20px;
	height: 20px;
}

.field-message,
.form-message {
	margin: 4px 0 0;
	font-size: 12px;
	color: #ff3d00;
	text-align: left;
	min-height: 16px;
}

.is-hidden {
	visibility: hidden;
}

.d-none {
	display: none !important;
}

#success-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: rgba(0, 0, 0, 0.1);
}

#success-overlay .success-message {
	background: #2a3647;
	color: #ffffff;
	padding: 14px 24px;
	border-radius: 20px;
	box-shadow: 0 0 4px rgba(0, 0, 0, 0.15);
	font-size: 20px;
	font-weight: 400;
	max-width: 80%;
	text-align: center;
}

.slide-in-bottom {
	animation: slide-up 0.5s ease-in-out forwards;
}

@keyframes slide-up {
	0% {
		transform: translateY(100vh);
		opacity: 0;
	}
	100% {
		transform: translateY(0);
		opacity: 1;
	}
}

.privacy-message {
	margin-top: 4px;
	text-align: center;
	width: 100%;
}

.login-actions {
	display: flex;
	justify-content: center;
	gap: 32px;
	margin-top: 36px;
}

.login-footer {
	display: flex;
	justify-content: center;
	gap: 24px;
	padding: 32px 0 48px 0;
	color: var(--muted);
	font-size: 16px;
}

.login-footer a:hover {
	color: var(--primary-hover);
}