@import url('/assets/css/variables.css');

/* =========================================================
   RESET
========================================================= */
* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	min-height: 100%;
}

body {
	min-height: 100vh;
	font-family:
		-apple-system,
		BlinkMacSystemFont,
		"Segoe UI",
		Roboto,
		Helvetica,
		Arial,
		sans-serif;
	background: #F8F6F1;
	color: #171717;
	-webkit-font-smoothing: antialiased;
}

/* =========================================================
   PAGE
========================================================= */
.login-page {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 40px 20px;
}

/* =========================================================
   LOGIN CARD
========================================================= */
.login-card {
	width: 100%;
	max-width: 440px;
	background: #FFFFFF;
	padding: 48px;
	border: 1px solid #E8E5DE;
	box-shadow:
		0 20px 60px rgba(0, 0, 0, 0.06);
}

/* =========================================================
   BRAND
========================================================= */
.login-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 52px;
}

.brand-mark {
	width: 42px;
	height: 42px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #FBBA00;
	color: #171717;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: -0.03em;
}

.brand-name {
	font-size: 15px;
	font-weight: 700;
	letter-spacing: -0.01em;
}

/* =========================================================
   HEADING
========================================================= */
.login-heading {
	margin-bottom: 34px;
}

.eyebrow {
	margin-bottom: 10px;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.16em;
	color: #77736B;
}

.login-heading h1 {
	margin-bottom: 10px;
	font-size: 34px;
	line-height: 1.1;
	font-weight: 700;
	letter-spacing: -0.04em;
}

.login-heading p:last-child {
	font-size: 14px;
	line-height: 1.6;
	color: #77736B;
}

/* =========================================================
   FORM
========================================================= */
.login-form {
	width: 100%;
}

.form-group {
	margin-bottom: 24px;
}

.form-group label {
	display: block;
	margin-bottom: 8px;
	font-size: 12px;
	font-weight: 700;
	color: #292929;
}

/* =========================================================
   PASSWORD LABEL
========================================================= */
.password-label {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.password-label label {
	margin-bottom: 8px;
}

.password-label a {
	margin-bottom: 8px;
	font-size: 11px;
	color: #77736B;
	text-decoration: none;
}

.password-label a:hover {
	color: #171717;
	text-decoration: underline;
}

/* =========================================================
   INPUTS
========================================================= */
input[type="email"],
input[type="password"],
.password-field input {
	width: 100%;
	height: 50px;
	padding: 0 15px;
	border: 1px solid #D9D6CF;
	background: #FFFFFF;
	color: #171717;
	font-family: inherit;
	font-size: 14px;
	outline: none;
	transition:
		border-color 0.2s ease,
		box-shadow 0.2s ease;
}

input::placeholder {
	color: #AAA69E;
}

input:focus {
	border-color: #171717;
	box-shadow:
		0 0 0 3px rgba(251, 186, 0, 0.18);
}

/* =========================================================
   PASSWORD FIELD
========================================================= */
.password-field {
	position: relative;
}

.password-field input {
	padding-right: 70px;
}

.password-toggle {
	position: absolute;
	top: 50%;
	right: 14px;
	transform: translateY(-50%);
	border: 0;
	background: transparent;
	color: #77736B;
	font-family: inherit;
	font-size: 11px;
	font-weight: 700;
	cursor: pointer;
}

.password-toggle:hover {
	color: #171717;
}

/* =========================================================
   ERROR
========================================================= */
.login-error {
	display: none;
	margin: -6px 0 18px;
	padding: 11px 13px;
	background: #FEF3F2;
	border-left: 3px solid #C0392B;
	color: #8E2B20;
	font-size: 12px;
	line-height: 1.5;
}

.login-error.visible {
	display: block;
}

/* =========================================================
   LOGIN BUTTON
========================================================= */
.login-button {
	width: 100%;
	height: 52px;
	border: 0;
	background: #171717;
	color: #FFFFFF;
	font-family: inherit;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.04em;
	cursor: pointer;
	transition:
		background 0.2s ease,
		transform 0.2s ease;
}

.login-button:hover {
	background: #FBBA00;
	color: #171717;
}

.login-button:active {
	transform: translateY(1px);
}

.login-button.loading {
	opacity: 0.7;
	cursor: wait;
}

/* =========================================================
   REMEMBER ME
========================================================= */
.remember-me {
	display: flex;
	align-items: center;
	gap: 9px;
	margin-top: 18px;
	color: #77736B;
	font-size: 12px;
	cursor: pointer;
}

.remember-me input {
	width: 14px;
	height: 14px;
	accent-color: #FBBA00;
	cursor: pointer;
}

/* =========================================================
   BACK LINK
========================================================= */
.back-link {
	margin-top: 36px;
	padding-top: 25px;
	border-top: 1px solid #ECE9E2;
	text-align: center;
}

.back-link a {
	color: #77736B;
	font-size: 12px;
	text-decoration: none;
}

.back-link a:hover {
	color: #171717;
}

/* =========================================================
   FOOTER
========================================================= */
.login-footer {
	margin-top: 25px;
	color: #99958D;
	font-size: 10px;
	text-align: center;
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 520px) {
	.login-page {
		padding: 20px;
	}

	.login-card {
		padding: 35px 25px;
	}

	.login-brand {
		margin-bottom: 40px;
	}

	.login-heading h1 {
		font-size: 30px;
	}

}
