/* Hero-лендинг и экран входа viz.garderobsystem.ru */

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

html,
body {
	margin: 0;
	min-height: 100%;
}

/* ===== Лендинг ===== */

.gsv-landing {
	min-height: 100vh;
	min-height: 100dvh;
	background: #0b0b0c;
	overflow-x: hidden;
}

.gsv-hero {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 100vh;
	min-height: 100dvh;
	width: 100%;
	padding:
		max(1.25rem, env(safe-area-inset-top, 0px))
		max(1.25rem, env(safe-area-inset-right, 0px))
		max(1.25rem, env(safe-area-inset-bottom, 0px))
		max(1.25rem, env(safe-area-inset-left, 0px));
	background-color: #0b0b0c;
	background-image: var(--gsv-hero);
	background-repeat: no-repeat;
	background-position: right center;
	background-size: cover;
	isolation: isolate;
}

.gsv-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background: linear-gradient(
		90deg,
		rgba(8, 8, 10, 0.88) 0%,
		rgba(8, 8, 10, 0.72) 28%,
		rgba(8, 8, 10, 0.28) 54%,
		rgba(8, 8, 10, 0.08) 100%
	);
}

.gsv-hero__logo {
	position: absolute;
	left: max(1.25rem, env(safe-area-inset-left, 0px));
	top: max(1.25rem, env(safe-area-inset-top, 0px));
	z-index: 2;
	display: block;
	line-height: 0;
	text-decoration: none;
}

.gsv-hero__logo img {
	display: block;
	height: clamp(40px, 5.5vw, 68px);
	width: auto;
	max-width: min(240px, 48vw);
	object-fit: contain;
	filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.45));
}

.gsv-hero__copy {
	position: relative;
	z-index: 2;
	width: min(36rem, 100%);
	max-width: 100%;
	margin-left: clamp(0px, 3vw, 3.5rem);
	padding-top: clamp(4.5rem, 12vh, 6rem);
	padding-right: 0.5rem;
}

.gsv-hero__title {
	margin: 0;
	font-family: "Manrope", "Segoe UI", sans-serif;
	font-weight: 800;
	line-height: 0.98;
	letter-spacing: -0.03em;
	text-wrap: balance;
}

.gsv-hero__title-brand,
.gsv-hero__title-accent {
	display: block;
	font-size: clamp(2rem, 5.6vw, 4.25rem);
}

.gsv-hero__title-brand {
	color: #fff;
	text-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

.gsv-hero__title-accent {
	margin-top: 0.12em;
	color: #d4b48a;
	text-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
}

.gsv-hero__lead {
	margin: clamp(0.9rem, 2vh, 1.35rem) 0 0;
	max-width: 28rem;
	color: rgba(255, 255, 255, 0.86);
	font-family: "Manrope", "Segoe UI", sans-serif;
	font-size: clamp(0.95rem, 1.7vw, 1.15rem);
	font-weight: 500;
	line-height: 1.45;
	text-wrap: pretty;
	text-shadow: 0 4px 18px rgba(0, 0, 0, 0.55);
}

.gsv-hero__login {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	margin-top: clamp(1.25rem, 3vh, 1.85rem);
	min-width: 148px;
	height: 44px;
	padding: 0 1.35rem;
	border-radius: 10px;
	border: 1px solid rgba(255, 255, 255, 0.42);
	background: rgba(12, 12, 14, 0.55);
	color: #fff;
	font-family: "Manrope", "Segoe UI", sans-serif;
	font-size: 0.98rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	text-decoration: none;
	backdrop-filter: blur(6px);
	transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.gsv-hero__login:hover,
.gsv-hero__login:focus-visible {
	background: rgba(20, 20, 24, 0.78);
	border-color: rgba(212, 175, 120, 0.75);
	transform: translateY(-1px);
	outline: none;
}

.gsv-hero__login-icon {
	display: inline-flex;
	opacity: 0.9;
}

/* Мобильный / планшетный портрет */
@media (max-width: 900px) {
	.gsv-hero {
		justify-content: flex-end;
		align-items: center;
		background-image: var(--gsv-hero-mobile, var(--gsv-hero));
		background-position: center top;
		padding-bottom: max(1.5rem, env(safe-area-inset-bottom, 0px));
	}

	.gsv-hero::before {
		background: linear-gradient(
			180deg,
			rgba(8, 8, 10, 0.55) 0%,
			rgba(8, 8, 10, 0.18) 38%,
			rgba(8, 8, 10, 0.78) 78%,
			rgba(8, 8, 10, 0.9) 100%
		);
	}

	.gsv-hero__logo {
		left: 50%;
		transform: translateX(-50%);
	}

	.gsv-hero__logo img {
		height: clamp(46px, 11vw, 62px);
		max-width: min(220px, 72vw);
	}

	.gsv-hero__copy {
		display: flex;
		flex-direction: column;
		align-items: center;
		width: min(34rem, 100%);
		margin: 0;
		padding: 0 0.25rem max(0.5rem, env(safe-area-inset-bottom, 0px));
		text-align: center;
	}

	.gsv-hero__title-brand,
	.gsv-hero__title-accent {
		font-size: clamp(1.85rem, 9.2vw, 2.75rem);
	}

	.gsv-hero__lead {
		max-width: 22rem;
		font-size: clamp(0.95rem, 3.8vw, 1.08rem);
	}

	.gsv-hero__login {
		min-width: min(220px, 78vw);
		height: 50px;
		font-size: 1.05rem;
	}
}

@media (max-width: 900px) and (orientation: landscape) {
	.gsv-hero {
		justify-content: center;
		background-position: center center;
	}

	.gsv-hero__copy {
		padding-bottom: 0;
	}

	.gsv-hero__login {
		height: 44px;
	}
}

/* ===== wp-login.php ===== */

body.login {
	background: #0b0b0c !important;
	display: flex;
	align-items: stretch;
	justify-content: flex-start;
	min-height: 100vh;
	min-height: 100dvh;
}

body.login::before {
	content: "";
	position: fixed;
	inset: 0;
	background-color: #0b0b0c;
	background-image: var(--gsv-hero);
	background-repeat: no-repeat;
	background-position: right center;
	background-size: cover;
	z-index: 0;
}

body.login::after {
	content: "";
	position: fixed;
	inset: 0;
	background: linear-gradient(
		90deg,
		rgba(8, 8, 10, 0.72) 0%,
		rgba(8, 8, 10, 0.45) 34%,
		rgba(8, 8, 10, 0.12) 58%,
		rgba(8, 8, 10, 0.05) 100%
	);
	z-index: 1;
	pointer-events: none;
}

body.login h1 a {
	display: none !important;
}

body.login #backtoblog,
body.login .language-switcher,
body.login #nav {
	display: none !important;
}

body.login #login {
	position: relative;
	z-index: 2;
	width: min(360px, calc(100vw - 2.5rem));
	padding: 0;
	margin: 0;
	margin-left: clamp(1.25rem, 5.2vw, 4.5rem);
	margin-top: clamp(180px, 34vh, 320px);
}

body.login .gsv-login-lead {
	margin: 0 0 1rem;
	color: rgba(255, 255, 255, 0.78);
	font-size: 0.92rem;
	line-height: 1.4;
	text-align: left;
}

body.login #loginform {
	background: rgba(14, 14, 16, 0.62);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 16px;
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
	backdrop-filter: blur(10px);
	padding: 22px 22px 18px;
}

body.login label {
	color: rgba(255, 255, 255, 0.78);
	font-size: 0.86rem;
}

body.login input[type="text"],
body.login input[type="password"],
body.login input[type="email"] {
	background: rgba(255, 255, 255, 0.06) !important;
	border: 1px solid rgba(255, 255, 255, 0.18) !important;
	border-radius: 10px !important;
	color: #fff !important;
	box-shadow: none !important;
	padding: 0.65rem 0.8rem !important;
}

body.login .forgetmenot label {
	color: rgba(255, 255, 255, 0.65);
}

body.login #wp-submit {
	width: 100%;
	background: transparent !important;
	border: 1px solid rgba(255, 255, 255, 0.45) !important;
	border-radius: 10px !important;
	color: #fff !important;
	font-weight: 600 !important;
	text-shadow: none !important;
	box-shadow: none !important;
	height: 44px !important;
	line-height: 42px !important;
	padding: 0 1rem !important;
	transition: background 0.2s ease, border-color 0.2s ease;
}

body.login #wp-submit:hover {
	background: rgba(255, 255, 255, 0.08) !important;
	border-color: rgba(212, 175, 120, 0.8) !important;
}

body.login #login_error,
body.login .message,
body.login .success {
	background: rgba(14, 14, 16, 0.75) !important;
	border-left-color: #c9a36a !important;
	color: #fff !important;
	box-shadow: none !important;
}

@media (max-width: 900px) {
	body.login::before {
		background-image: var(--gsv-hero-mobile, var(--gsv-hero));
		background-position: center top;
		background-size: cover;
	}

	body.login::after {
		background: linear-gradient(
			180deg,
			rgba(8, 8, 10, 0.55) 0%,
			rgba(8, 8, 10, 0.35) 42%,
			rgba(8, 8, 10, 0.72) 100%
		);
	}

	body.login {
		justify-content: center;
		align-items: flex-end;
	}

	body.login #login {
		margin: 0 auto max(6vh, env(safe-area-inset-bottom, 0px));
		width: min(380px, calc(100vw - 2.5rem));
	}

	body.login .gsv-login-lead {
		text-align: center;
	}
}
