/**
 * Uspeh Login — gateway (Успехагро)
 * Prefix: uspeh-login- — isolated from theme.
 */

:root {
	--uspeh-login-accent: #11c332;
	--uspeh-login-accent-hover: #0ea82b;
	--uspeh-login-accent-soft: rgba(17, 195, 50, 0.22);
}

html.uspeh-login-gateway-html,
body.uspeh-login-gateway-body {
	margin: 0 !important;
	padding: 0 !important;
	min-height: 100% !important;
	min-height: 100vh !important;
	font-family: "Montserrat", "Segoe UI", Tahoma, sans-serif !important;
	color: #242424;
	background: #1a2e1a !important;
	overflow-x: hidden !important;
}

/* Скрыть всё от темы: нижнее меню WoodMart, хедеры, сайдбары */
body.uspeh-login-gateway-body > *:not(.uspeh-login-gateway):not(script):not(style):not(link):not(#wpadminbar) {
	display: none !important;
	visibility: hidden !important;
	pointer-events: none !important;
	height: 0 !important;
	max-height: 0 !important;
	overflow: hidden !important;
	opacity: 0 !important;
}

body.uspeh-login-gateway-body .wd-toolbar,
body.uspeh-login-gateway-body .woodmart-toolbar,
body.uspeh-login-gateway-body .wd-sticky-nav,
body.uspeh-login-gateway-body .mobile-nav,
body.uspeh-login-gateway-body .wd-nav-mobile,
body.uspeh-login-gateway-body .whb-header,
body.uspeh-login-gateway-body .whb-main-header,
body.uspeh-login-gateway-body .header-banner,
body.uspeh-login-gateway-body .cart-widget-side,
body.uspeh-login-gateway-body .wd-side-hidden,
body.uspeh-login-gateway-body .wd-popup,
body.uspeh-login-gateway-body .cookies-popup,
body.uspeh-login-gateway-body #cookie-notice,
body.uspeh-login-gateway-body .site-header,
body.uspeh-login-gateway-body .site-footer,
body.uspeh-login-gateway-body footer,
body.uspeh-login-gateway-body header {
	display: none !important;
	visibility: hidden !important;
	pointer-events: none !important;
	height: 0 !important;
	opacity: 0 !important;
}

.uspeh-login-gateway {
	position: relative;
	z-index: 99999;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 32px 16px 48px;
	box-sizing: border-box;
	overflow: hidden;
}

.uspeh-login-gateway__bg {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(135deg, rgba(26, 46, 26, 0.94) 0%, rgba(20, 80, 35, 0.9) 45%, rgba(12, 28, 16, 0.96) 100%),
		radial-gradient(ellipse at 20% 20%, rgba(17, 195, 50, 0.28), transparent 50%),
		radial-gradient(ellipse at 80% 80%, rgba(255, 193, 7, 0.1), transparent 45%);
	z-index: 0;
}

.uspeh-login-gateway__bg::after {
	content: "";
	position: absolute;
	inset: 0;
	opacity: 0.07;
	background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
	pointer-events: none;
}

.uspeh-login-gateway__panel {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 440px;
	animation: uspeh-login-fade-up 0.55s ease both;
}

@keyframes uspeh-login-fade-up {
	from {
		opacity: 0;
		transform: translateY(18px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.uspeh-login-gateway__brand {
	text-align: center;
	margin-bottom: 22px;
	color: #fff;
}

.uspeh-login-gateway__logo-img {
	display: block;
	margin: 0 auto;
	width: auto;
	max-width: min(250px, 78vw);
	height: auto;
	max-height: 88px;
	object-fit: contain;
	filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.35));
}

.uspeh-login-gateway__site-name {
	font-size: 34px;
	font-weight: 800;
	letter-spacing: 0.08em;
	line-height: 1.2;
	text-transform: uppercase;
	text-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.uspeh-login-gateway__tagline {
	margin: 8px 0 0;
	font-size: 13px;
	opacity: 0.85;
	font-weight: 400;
}

.uspeh-login-card {
	background: #ffffff;
	border-radius: 10px;
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
	padding: 32px 28px 28px;
	animation: uspeh-login-card-in 0.4s ease both;
}

@keyframes uspeh-login-card-in {
	from {
		opacity: 0;
		transform: scale(0.98);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

.uspeh-login-card__title {
	margin: 0 0 8px;
	font-size: 22px;
	font-weight: 700;
	color: #242424;
	line-height: 1.3;
}

.uspeh-login-card__subtitle {
	margin: 0 0 22px;
	font-size: 14px;
	line-height: 1.5;
	color: #777;
}

.uspeh-login-card__hint {
	margin: 16px 0 0;
	font-size: 12px;
	color: #999;
	text-align: center;
	line-height: 1.45;
}

.uspeh-login-form__row {
	margin-bottom: 14px;
}

.uspeh-login-form__label {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 600;
	color: #333;
}

.uspeh-login-form__label span {
	color: var(--uspeh-login-accent);
}

.uspeh-login-form__hint {
	display: block;
	margin-top: 5px;
	font-size: 11px;
	color: #999;
}

.uspeh-login-gateway .uspeh-login-form__input,
body.uspeh-login-gateway-body .uspeh-login-form__input {
	width: 100% !important;
	box-sizing: border-box !important;
	height: 46px !important;
	padding: 0 14px !important;
	border: 1px solid #ddd !important;
	border-radius: 6px !important;
	background: #f9f9f9 !important;
	font-size: 15px !important;
	color: #242424 !important;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
	outline: none !important;
	font-family: inherit !important;
	box-shadow: none !important;
}

.uspeh-login-gateway .uspeh-login-form__input:focus,
body.uspeh-login-gateway-body .uspeh-login-form__input:focus {
	border-color: var(--uspeh-login-accent) !important;
	background: #fff !important;
	box-shadow: 0 0 0 3px var(--uspeh-login-accent-soft) !important;
}

.uspeh-login-gateway .uspeh-login-btn,
body.uspeh-login-gateway-body .uspeh-login-btn,
.uspeh-login-gateway button.uspeh-login-btn {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 100% !important;
	height: 48px !important;
	margin-top: 6px !important;
	border: none !important;
	border-radius: 6px !important;
	background: var(--uspeh-login-accent) !important;
	background-color: #11c332 !important;
	background-image: none !important;
	color: #ffffff !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	letter-spacing: 0.03em !important;
	text-transform: uppercase !important;
	cursor: pointer !important;
	transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
	font-family: inherit !important;
	box-shadow: 0 6px 16px rgba(17, 195, 50, 0.4) !important;
	text-decoration: none !important;
	line-height: 1 !important;
	opacity: 1 !important;
}

.uspeh-login-gateway .uspeh-login-btn:hover:not(:disabled),
body.uspeh-login-gateway-body .uspeh-login-btn:hover:not(:disabled) {
	background: var(--uspeh-login-accent-hover) !important;
	background-color: #0ea82b !important;
	color: #fff !important;
	transform: translateY(-1px);
}

.uspeh-login-gateway .uspeh-login-btn:active:not(:disabled) {
	transform: translateY(0);
}

.uspeh-login-gateway .uspeh-login-btn:disabled {
	opacity: 0.7 !important;
	cursor: wait !important;
}

.uspeh-login-gateway .uspeh-login-btn--ghost,
body.uspeh-login-gateway-body .uspeh-login-btn--ghost {
	margin-top: 10px !important;
	background: transparent !important;
	background-color: transparent !important;
	color: #555 !important;
	box-shadow: none !important;
	border: 1px solid #ddd !important;
	text-transform: none !important;
	font-weight: 600 !important;
	height: 44px !important;
}

.uspeh-login-gateway .uspeh-login-btn--ghost:hover:not(:disabled) {
	background: #f5f5f5 !important;
	color: #242424 !important;
}

.uspeh-login-text-link-wrap {
	margin: 14px 0 0;
	text-align: center;
}

.uspeh-login-text-link {
	color: #11c332 !important;
	font-size: 14px;
	font-weight: 600;
	text-decoration: underline;
	background: none !important;
	border: none !important;
	box-shadow: none !important;
	cursor: pointer;
	padding: 0;
}

.uspeh-login-text-link:hover {
	color: #0ea82b !important;
	text-decoration: none;
}

.uspeh-login-countdown {
	font-variant-numeric: tabular-nums;
	font-weight: 700;
}

.uspeh-login-alert {
	margin-bottom: 14px;
	padding: 12px 14px;
	border-radius: 6px;
	font-size: 13px;
	line-height: 1.4;
}

.uspeh-login-alert--error {
	background: #fff1f0;
	color: #a61d24;
	border: 1px solid #ffccc7;
}

.uspeh-login-alert--success {
	background: #f0fff4;
	color: #0d7a28;
	border: 1px solid #b7eb8f;
}

.uspeh-login-alert--info {
	background: #f0fff4;
	color: #0d7a28;
	border: 1px solid #a7e9b8;
}

.uspeh-login-success {
	text-align: center;
}

.uspeh-login-success__icon {
	width: 56px;
	height: 56px;
	margin: 0 auto 16px;
	border-radius: 50%;
	background: #11c332 !important;
	color: #fff;
	font-size: 28px;
	line-height: 56px;
	animation: uspeh-login-pop 0.45s ease both;
}

@keyframes uspeh-login-pop {
	from {
		transform: scale(0.6);
		opacity: 0;
	}
	to {
		transform: scale(1);
		opacity: 1;
	}
}

.uspeh-login-gateway__footer {
	margin-top: 20px;
	text-align: center;
	color: rgba(255, 255, 255, 0.8);
	font-size: 12px;
}

.uspeh-login-gateway__footer p {
	margin: 0 0 6px;
}

.uspeh-login-gateway__credit a {
	color: #ffd54f !important;
	text-decoration: none;
	font-weight: 600;
}

.uspeh-login-gateway__credit a:hover {
	text-decoration: underline;
}

@media (max-width: 480px) {
	.uspeh-login-gateway {
		padding: 24px 14px 40px;
	}

	.uspeh-login-card {
		padding: 24px 18px 20px;
	}

	.uspeh-login-card__title {
		font-size: 20px;
	}

	.uspeh-login-gateway__site-name {
		font-size: 26px;
	}
}
