/* =========================================================
   StilX Authentication
   ========================================================= */

.stilx-login {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	min-height: 650px;
	gap: 50px;
	align-items: center;
}


/* =========================================================
   VISUAL
   ========================================================= */

.stilx-login__visual {
	position: relative;

	min-height: 650px;
}

.stilx-login__visual > img {
	position: absolute;
    inset: 0;
    width: 50vw;
    right: 0;
    left: unset;
    top: -48px;
    height: calc(100% + 112px);
    object-fit: cover;
}


/* Dark overlay */

.stilx-login__visual::after {
	content: "";

	position: absolute;
	inset: 0;
	width: 50vw;
    right: 0;
    left: unset;
    top: -48px;
    height: calc(100% + 112px);
	background:
		linear-gradient(
			to top,
			rgba(20, 17, 14, 0.72) 0%,
			rgba(20, 17, 14, 0.15) 55%,
			rgba(20, 17, 14, 0.05) 100%
		);
}


/* Text on image */

.stilx-login__visual-content {
	position: absolute;
	z-index: 2;

	left: 54px;
	right: 54px;
	bottom: 52px;

	color: #fff;
}

.stilx-login__visual-content h2 {
	margin: 0;

	font-family: var(
		--font-serif,
		"Cormorant Garamond",
		serif
	);

	font-size: clamp(42px, 4vw, 62px);
	font-weight: 400;
	line-height: .95;
	letter-spacing: -0.025em;
}

.stilx-login__visual-content h2 span {
	color: var(--warm, #b89568);
	font-style: italic;
}

.stilx-login__visual-line {
	width: 52px;
	height: 2px;

	margin: 25px 0 20px;

	background: var(--warm, #b89568);
}

.stilx-login__visual-content p {
	max-width: 280px;

	margin: 0;

	font-family: var(
		--font-sans,
		Inter,
		sans-serif
	);

	font-size: 14px;
	line-height: 1.6;

	color: rgba(255, 255, 255, .86);
}


/* =========================================================
   CONTENT
   ========================================================= */

.stilx-login__content {
	padding: 50px 0;
	width: 100%;
}



/* =========================================================
   HEADER
   ========================================================= */

.stilx-login__header {
	margin-bottom: 42px;
}

.stilx-login__header h1 {
	margin: 0 0 13px;
}



/* =========================================================
   FORM
   ========================================================= */

.stilx-login__form {
	width: 100%;
}


/* =========================================================
   PASSWORD
   ========================================================= */

.stilx-password-field {
	position: relative;
}

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

.stilx-password-toggle {
	position: absolute;

	top: 50%;
	right: 8px;

	display: flex;
	align-items: center;
	justify-content: center;

	width: 36px;
	height: 36px;

	padding: 0;

	transform: translateY(-50%);

	border: 0;
	border-radius: 5px;

	background: transparent;

	color: #8a8178;

	cursor: pointer;
}

.stilx-password-toggle:hover {
	background: #f4f0e9;
	color: var(--text, #1a1815);
}


/* =========================================================
   REMEMBER
   ========================================================= */

.stilx-login__remember {
	margin: -2px 0 27px;
}

.stilx-login__remember label {
	display: inline-flex;
	align-items: center;
	gap: 9px;

	font-family: var(
		--font-sans,
		Inter,
		sans-serif
	);

	font-size: 13px;

	color: var(--muted, #756d65);

	cursor: pointer;
}

.stilx-login__remember input {
	width: 16px;
	height: 16px;

	margin: 0;

	accent-color: var(--warm, #b89568);
}




/* =========================================================
   FORGOT PASSWORD
   ========================================================= */

.stilx-login__footer {
	margin-top: 24px;
}

.stilx-login__footer a {
	font-family: var(
		--font-sans,
		Inter,
		sans-serif
	);

	font-size: 13px;

	color: #756d65;

	text-decoration: underline;
	text-decoration-color: #c9beb2;
	text-underline-offset: 4px;

	transition: color .2s ease;
}

.stilx-login__footer a:hover {
	color: var(--text, #1a1815);
}



/* =========================================================
   TABLET / MOBILE
   ========================================================= */

@media (max-width: 900px) {

	.stilx-login {
		grid-template-columns: 1fr;
	}
	.stilx-login__visual > img, .stilx-login__visual::after{
		width: 100vw;
		right: unset;
		height: calc(100% + 48px);
		left: 50%;
		transform: translateX(-50%);

	}

	.stilx-login__visual {
		min-height: 420px;
	}
	.stilx-login__content{
		padding: 0;
	}

}


@media (max-width: 600px) {

	.stilx-login {
		margin-top: 0;
	}

	.stilx-login__visual {
		min-height: 360px;
	}

	.stilx-login__visual-content {
		left: 30px;
		right: 30px;
		bottom: 32px;
	}

	.stilx-login__visual-content h2 {
		font-size: 42px;
	}

}