/* =========================================================
   Slick Sneakers — Admin login (split layout)
   Fonts: Blender = UI, Winnersans = headings (storefront)
========================================================= */
:root {
	--login-ink: #141414;
	--login-paper: #FFFAF7;
	--login-accent: #FF6201;
	--login-muted: #6b6b6b;
	--login-line: #e4ddd6;
	--login-panel: #f7f3ef;
	--login-radius: 22px;
	--login-radius-sm: 4px;
}

body.login *,
body.login *::before,
body.login *::after {
	box-sizing: border-box;
}

#backtoblog,
#login h1,
.login .wp-login-logo,
.login .wp-login-powered-by,
.language-switcher,
.login .wp-tooltip,
.privacy-policy-page-link {
	display: none !important;
}

/* =========================================================
   BASE
========================================================= */
body.login {
	font-family: 'Blender', sans-serif;
	font-weight: 500;
	font-synthesis: none;
	background: var(--login-paper);
	padding: 3vh;
	color: var(--login-ink);
	height: unset;
	min-height: 100vh;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.trsn-login-app {
	display: grid;
	grid-template-columns: 1fr 1fr;
	background: var(--login-paper);
	border-radius: 28px;
	min-height: calc(100vh - 6vh);
}

/* =========================================================
   LEFT – AUTH PANEL
========================================================= */
.trsn-login-left {
	margin: 1.5rem;
	padding: 3.5rem 3rem;
	background: var(--login-panel);
	border-radius: var(--login-radius);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
}

.trsn-login-logo {
	display: inline-block;
	margin: 0 auto 2.25rem;
	animation: loginRise .7s cubic-bezier(.22, 1, .36, 1) both;
}

.trsn-login-logo img {
	display: block;
	width: 148px;
	height: auto;
	margin: 0 auto;
}

#login {
	width: 100%;
	max-width: 380px;
	margin: 0 auto;
	padding: 0;
	background: transparent;
	text-align: left;
}

.trsn-login-heading {
	margin: 0 auto 2rem;
	width: 100%;
	max-width: 380px;
	text-align: center;
	animation: loginRise .7s .08s cubic-bezier(.22, 1, .36, 1) both;
}

.trsn-login-heading h1 {
	font-family: 'Winnersans', sans-serif;
	font-size: clamp(2rem, 3.2vw, 2.65rem);
	line-height: 1.05;
	font-weight: 500;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	margin: 0 0 .45rem;
	color: var(--login-ink);
}

.trsn-login-heading p {
	margin: 0;
	font-family: 'Blender', sans-serif;
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.5;
	color: var(--login-muted);
}

/* =========================================================
   FORM
========================================================= */
.login form {
	display: flex;
	flex-direction: column;
	gap: 1.15rem;
	margin: 0;
	padding: 0;
	background: transparent;
	border: none;
	box-shadow: none;
	animation: loginRise .75s .12s cubic-bezier(.22, 1, .36, 1) both;
}

.login form .user-pass-wrap,
.login form > p:not(.forgetmenot):not(.submit) {
	margin: 0;
}

.login label {
	display: block;
	font-family: 'Blender', sans-serif;
	font-size: 0.88rem;
	font-weight: 500;
	color: var(--login-muted);
	margin: 0 0 .45rem;
	text-align: left;
}

.login input[type="text"],
.login input[type="password"],
.login input[type="email"] {
	width: 100%;
	height: 54px;
	padding: 0 1.2rem;
	font-size: 1rem;
	font-family: 'Blender', sans-serif;
	font-weight: 500;
	color: var(--login-ink);
	background: #fff;
	border: 1px solid var(--login-line);
	border-radius: 999px;
	box-shadow: none;
	transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.login input[type="text"]:focus,
.login input[type="password"]:focus,
.login input[type="email"]:focus {
	outline: none;
	border-color: var(--login-accent);
	box-shadow: 0 0 0 3px rgba(255, 98, 1, .16);
}

.wp-pwd {
	position: relative;
}

.login .button.wp-hide-pw {
	position: absolute;
	top: 0;
	right: .75rem;
	bottom: 0;
	height: 54px;
	min-height: 54px;
	width: 44px;
	padding: 0;
	color: var(--login-muted) !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
}

.login .button.wp-hide-pw:hover,
.login .button.wp-hide-pw:focus {
	color: var(--login-accent) !important;
}

.login .forgetmenot {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: .65rem;
	margin: .15rem 0 0;
	padding: 0;
}

.login .forgetmenot input[type="checkbox"] {
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--login-accent);
	flex-shrink: 0;
}

.login .forgetmenot label {
	display: inline;
	margin: 0;
	font-family: 'Blender', sans-serif;
	font-size: .95rem;
	font-weight: 500;
	color: var(--login-ink);
	cursor: pointer;
}

.login .submit {
	margin: .4rem 0 0;
	padding: 0;
}

.login input[type="submit"],
.login .button-primary {
	width: 100%;
	height: 54px;
	margin: 0;
	padding: 0 1.5rem;
	font-family: 'Winnersans', sans-serif;
	font-size: .95rem;
	font-weight: 500;
	letter-spacing: .06em;
	text-transform: uppercase;
	line-height: 54px;
	text-shadow: none !important;
	color: #fff !important;
	background: var(--login-accent) !important;
	border: 1px solid var(--login-accent) !important;
	border-radius: 999px;
	box-shadow: none !important;
	cursor: pointer;
	transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.login input[type="submit"]:hover,
.login .button-primary:hover {
	background: var(--login-ink) !important;
	border-color: var(--login-ink) !important;
	color: #fff !important;
	transform: translateY(-1px);
}

.login input[type="submit"]:focus,
.login .button-primary:focus {
	box-shadow: 0 0 0 3px rgba(255, 98, 1, .22) !important;
}

.login #nav {
	margin: 1.25rem auto 0;
	padding: 0;
	text-align: center;
	max-width: 380px;
}

.login #nav a,
.login a {
	font-family: 'Blender', sans-serif;
	font-weight: 500;
	font-size: .95rem;
	color: var(--login-ink);
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: color .2s ease, border-color .2s ease;
}

.login #nav a:hover,
.login a:hover {
	color: var(--login-accent);
	border-bottom-color: var(--login-accent);
}

#login_error,
.login .message,
.login .notice,
.login .success {
	margin: 0 0 1.15rem !important;
	padding: .9rem 1.1rem;
	border-radius: 14px;
	background: #fff;
	border: 1px solid var(--login-line);
	border-left-width: 3px;
	box-shadow: none;
	font-size: .9rem;
}

#login_error {
	border-left-color: #dc2626;
}

.login .message,
.login .success {
	border-left-color: var(--login-accent);
}

/* =========================================================
   RIGHT – HERO
========================================================= */
.trsn-login-right {
	position: relative;
	margin: 1.5rem;
	border-radius: var(--login-radius);
	overflow: hidden;
	min-height: calc(100vh - 9vh);
	background: var(--login-ink);
	animation: loginFade .9s ease-out both;
}

.trsn-login-right::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 2;
	background:
		linear-gradient(
			160deg,
			rgba(20, 20, 20, .25) 0%,
			rgba(20, 20, 20, .1) 45%,
			rgba(20, 20, 20, .45) 100%
		),
		radial-gradient(
			ellipse at 70% 90%,
			rgba(255, 98, 1, .32) 0%,
			transparent 55%
		);
	pointer-events: none;
}

.trsn-login-right img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	z-index: 1;
	transform: scale(1.04);
	animation: loginBg 1.4s ease-out both;
}

.trsn-login-hero {
	position: absolute;
	z-index: 3;
	left: 1.25rem;
	right: 1.25rem;
	bottom: 1.25rem;
	padding: 1.5rem 1.6rem;
	color: var(--login-paper);
	border-radius: var(--login-radius);
	background: rgba(20, 20, 20, .5);
	border: 1px solid rgba(255, 250, 247, .18);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	box-shadow: 0 12px 40px rgba(0, 0, 0, .22);
	animation: loginRise .85s .2s cubic-bezier(.22, 1, .36, 1) both;
}

.trsn-login-hero h2 {
	font-family: 'Winnersans', sans-serif;
	font-size: 1.35rem;
	font-weight: 500;
	letter-spacing: .04em;
	text-transform: uppercase;
	margin: 0 0 .55rem;
}

.trsn-login-hero p {
	font-family: 'Blender', sans-serif;
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.55;
	max-width: 28rem;
	opacity: .92;
	margin: 0;
}

.trsn-hero-list {
	margin: 1.2rem 0 0;
	padding: 0;
	list-style: none;
}

.trsn-hero-list li {
	position: relative;
	padding-left: 1.45rem;
	margin-bottom: .5rem;
	font-family: 'Blender', sans-serif;
	font-size: .95rem;
	font-weight: 500;
	opacity: .95;
}

.trsn-hero-list li:last-child {
	margin-bottom: 0;
}

.trsn-hero-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .55em;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--login-accent);
}

/* =========================================================
   MOTION
========================================================= */
@keyframes loginRise {
	from {
		opacity: 0;
		transform: translateY(16px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes loginFade {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes loginBg {
	from {
		transform: scale(1.1);
		opacity: .65;
	}
	to {
		transform: scale(1.04);
		opacity: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.login *,
	body.login *::before,
	body.login *::after {
		animation: none !important;
		transition: none !important;
	}

	.trsn-login-right img {
		transform: scale(1);
	}
}

@media (max-width: 991px) {
	body.login {
		padding: 1rem;
	}

	.trsn-login-app {
		grid-template-columns: 1fr;
		min-height: auto;
	}

	.trsn-login-right {
		display: none;
	}

	.trsn-login-left {
		margin: 0;
		padding: 2.5rem 1.5rem;
		min-height: calc(100vh - 2rem);
		justify-content: center;
	}

	.trsn-login-logo {
		margin-bottom: 1.75rem;
	}

	.trsn-login-heading {
		margin-bottom: 1.75rem;
	}

	.trsn-login-heading h1 {
		font-size: 1.85rem;
	}

	.login input[type="text"],
	.login input[type="password"],
	.login input[type="email"],
	.login input[type="submit"],
	.login .button-primary,
	.login .button.wp-hide-pw {
		height: 52px;
		min-height: 52px;
		line-height: 52px;
	}
}

#wp-auth-check-wrap #wp-auth-check {
	border-radius: var(--login-radius);
	width: min(520px, 92vw);
	left: 0;
	right: 0;
	margin: 0 auto;
	background-color: var(--login-paper);
}
