/* GTE — стилизация /wp-login.php под дизайн клиентского ЛК. */

@font-face {
	font-family: 'Geometria';
	font-display: swap;
	src: url('../fonts/geometria_light.ttf') format('truetype');
	font-weight: 400;
	font-style: normal;
}
@font-face {
	font-family: 'Geometria';
	font-display: swap;
	src: url('../fonts/geometria_medium.ttf') format('truetype');
	font-weight: 500;
	font-style: normal;
}
@font-face {
	font-family: 'Geometria';
	font-display: swap;
	src: url('../fonts/geometria_bold.ttf') format('truetype');
	font-weight: 700;
	font-style: normal;
}

body.login {
	background: linear-gradient(143.54deg, #001A0D 0%, #022D12 50%, #001A0D 100%);
	color: #fff;
	font-family: 'Geometria', sans-serif;
	min-height: 100vh;
	position: relative;
	overflow-x: hidden;
}

/* Декоративные blob-effects */
body.login::before,
body.login::after {
	content: '';
	position: fixed;
	border-radius: 9999px;
	pointer-events: none;
	z-index: 0;
}
body.login::before {
	background: rgba(0, 156, 61, 0.2);
	filter: blur(150px);
	width: 800px; height: 800px;
	left: calc(50% - 400px);
	top: -200px;
}
body.login::after {
	background: rgba(255, 145, 53, 0.15);
	filter: blur(120px);
	width: 600px; height: 600px;
	left: calc(50% - 300px);
	top: 30vh;
}

/* Контейнер логина — поверх blob'ов */
body.login #login {
	position: relative;
	z-index: 1;
	padding: 40px 0;
	width: 500px;
	max-width: calc(100vw - 40px);
}

/* Lostpassword: блок «Иконка + заголовок + текст» ВНУТРИ формы, выровнен по левому краю (Figma 181:5474). order:-1 чтобы был выше Email-поля. */
body.login .gte-lostpwd-head {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	margin-bottom: 4px;
	order: -1;
}
body.login .gte-lostpwd-icon {
	width: 48px;
	height: 48px;
	border-radius: 999px;
	background: rgba(0, 156, 61, 0.2);
	color: #009C3D;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 0 14px 0;
}
body.login .gte-lostpwd-head__title {
	font-family: 'Geometria', sans-serif;
	font-weight: 500;
	font-size: 30px;
	line-height: 36px;
	color: #fff;
	text-align: left;
}
body.login .gte-lostpwd-head__text {
	font-family: 'Geometria', sans-serif;
	font-weight: 400;
	font-size: 16px;
	line-height: 24px;
	color: rgba(255, 255, 255, 0.6);
	text-align: left;
}

/* На lostpassword скрываем дефолтный ::before заголовок (он рендерился по центру), у нас свой в head */
body.login #lostpasswordform::before { display: none !important; }

/* Скрываем дефолтное серое инфо-сообщение WP (мы его очищаем через filter, но на всякий случай) */
body.login-action-lostpassword .message:not(.gte-keep),
body.login-action-retrievepassword .message:not(.gte-keep) {
	display: none !important;
}

/* Кастомный eye-toggle на форме входа (поверх WP-default) */
body.login .gte-login-pwd-wrap {
	position: relative;
}
body.login .gte-login-pwd-wrap input[type="password"],
body.login .gte-login-pwd-wrap input[type="text"] {
	padding-right: 48px !important;
}
body.login .gte-login-pwd-toggle {
	position: absolute;
	right: 12px; top: 50%;
	transform: translateY(-50%);
	background: transparent;
	border: none;
	cursor: pointer;
	color: rgba(255, 255, 255, 0.6);
	padding: 6px;
	display: inline-flex; align-items: center; justify-content: center;
	box-shadow: none;
}
body.login .gte-login-pwd-toggle:hover { color: #fff; }

/* WP-default button .wp-hide-pw скрываем — у нас своя реализация */
body.login .wp-hide-pw { display: none !important; }

/* Кнопка «Отмена» под формой восстановления */
body.login .gte-login-cancel {
	display: block;
	margin-top: 12px;
	padding: 14px 22px;
	height: 50px;
	box-sizing: border-box;
	border-radius: 50px;
	border: 1px solid #089C3E !important;
	background: transparent !important;
	color: #E3E3E3 !important;
	font-family: 'Geometria', sans-serif !important;
	font-size: 16px !important;
	text-align: center;
	text-decoration: none !important;
	line-height: 1.4;
	transition: background 0.2s;
	float: none;
}
body.login .gte-login-cancel:hover {
	background: rgba(0, 156, 61, 0.08) !important;
}

/* Логотип — заменяем WP-логотип на наш */
body.login h1 a,
body.login #login h1 a {
	width: 166px !important;
	height: 60px !important;
	background-image: none !important;
	background-color: transparent !important;
	background-size: contain !important;
	background-position: center !important;
	background-repeat: no-repeat !important;
	text-indent: -9999px;
	display: block;
	margin: 0 auto 30px;
}
body.login h1 a::after {
	content: '';
	display: block;
	width: 166px; height: 33px;
	background-image: var(--gte-logo-url, none);
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
	margin: 0 auto;
}

/* Карточка формы */
body.login form,
body.login #loginform,
body.login #lostpasswordform,
body.login #registerform {
	background: rgba(2, 45, 18, 0.5);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 20px;
	padding: 30px 24px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	display: flex;
	flex-direction: column;
	gap: 20px;
}

/* Заголовок формы */
body.login form::before {
	content: 'Вход в систему';
	display: block;
	font-family: 'Geometria', sans-serif;
	font-weight: 500;
	font-size: 30px;
	line-height: 36px;
	color: #fff;
	text-align: center;
	margin-bottom: 4px;
}
body.login #lostpasswordform::before { content: 'Восстановление пароля'; }
body.login #registerform::before    { content: 'Регистрация'; }

/* Лейблы */
body.login form label,
body.login label[for="user_login"],
body.login label[for="user_pass"],
body.login label[for="user_email"] {
	color: #fff;
	font-family: 'Geometria', sans-serif;
	font-size: 14px;
	line-height: 20px;
	font-weight: 500;
	margin-bottom: 8px;
}

/* Поля ввода */
body.login form .input,
body.login form input[type="text"],
body.login form input[type="email"],
body.login form input[type="password"] {
	background: rgba(255, 255, 255, 0.05) !important;
	border: 1px solid rgba(255, 255, 255, 0.1) !important;
	border-radius: 10px !important;
	padding: 12px 16px !important;
	height: 50px !important;
	color: #fff !important;
	font-family: 'Geometria', sans-serif !important;
	font-size: 16px !important;
	width: 100% !important;
	box-shadow: none !important;
	margin-top: 8px !important;
	margin-bottom: 0 !important;
	transition: border-color 0.2s, background 0.2s;
}
body.login form .input:focus,
body.login form input[type="text"]:focus,
body.login form input[type="email"]:focus,
body.login form input[type="password"]:focus {
	outline: none;
	border-color: #009C3D !important;
	background: rgba(255, 255, 255, 0.08) !important;
	box-shadow: 0 0 0 1px #009C3D !important;
}
body.login form input::placeholder { color: rgba(255, 255, 255, 0.4); }

/* Wrapper'ы полей */
body.login form p {
	margin-bottom: 0;
	display: flex;
	flex-direction: column;
}

/* Forget — переключатель показа пароля */
body.login .wp-pwd {
	position: relative;
}
body.login .wp-pwd button.button.wp-hide-pw {
	position: absolute;
	right: 12px;
	top: 36px;
	background: transparent;
	border: none;
	box-shadow: none;
	color: rgba(255, 255, 255, 0.6);
	padding: 0;
	width: 32px; height: 32px;
}
body.login .wp-pwd button.button.wp-hide-pw:hover { color: #fff; }
body.login .wp-pwd button.button.wp-hide-pw .dashicons { color: inherit; }

/* Чекбокс "Запомнить меня" */
body.login .forgetmenot {
	color: rgba(255, 255, 255, 0.6);
	font-family: 'Geometria', sans-serif;
	font-size: 13px;
	display: flex;
	align-items: center;
	gap: 8px;
	flex-direction: row !important;
}
/* Custom checkbox under Figma 180:5583 (inactive) / 181:5240 (active) */
body.login input[type="checkbox"] {
	appearance: none !important;
	-webkit-appearance: none !important;
	-moz-appearance: none !important;
	width: 16px !important;
	height: 16px !important;
	border: 1px solid #ffffff !important;
	border-radius: 4px !important;
	background: transparent !important;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
	cursor: pointer;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	margin: 0 !important;
	flex-shrink: 0;
	transition: background 0.15s, border-color 0.15s;
	vertical-align: middle;
	padding: 0 !important;
	min-width: 0 !important;
}
body.login input[type="checkbox"]:hover { border-color: #089C3E !important; }
body.login input[type="checkbox"]:checked {
	background: #089C3E !important;
	border-color: #089C3E !important;
}
body.login input[type="checkbox"]:checked::after {
	content: '';
	width: 10px;
	height: 10px;
	background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'><path d='M3 8.5L6.5 12L13 5' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / contain no-repeat;
}
body.login input[type="checkbox"]:focus-visible {
	outline: 2px solid rgba(0, 156, 61, 0.5) !important;
	outline-offset: 2px;
}
body.login .forgetmenot label { color: inherit; font-weight: 400; margin: 0; }

/* Кнопка Submit (Войти) */
body.login form .submit,
body.login form p.submit {
	margin: 8px 0 0 0;
	float: none;
}
body.login form .button.button-primary,
body.login .wp-core-ui .button-primary {
	width: 100%;
	background: linear-gradient(-4.72deg, #009C3D 16.5%, #13562D 93.3%) !important;
	border: none !important;
	border-radius: 50px !important;
	padding: 0 22px !important;
	height: 50px !important;
	font-family: 'Geometria', sans-serif !important;
	font-size: 16px !important;
	color: #fff !important;
	cursor: pointer;
	transition: filter 0.2s, transform 0.1s;
	box-shadow: 0 0 12.5px rgba(0, 168, 89, 0.3) !important;
	text-shadow: none !important;
	float: none;
	font-weight: 400;
	letter-spacing: 0;
}
body.login .wp-core-ui .button-primary:hover { filter: brightness(1.1); }
body.login .wp-core-ui .button-primary:active { transform: translateY(1px); }
body.login .wp-core-ui .button-primary:focus { box-shadow: 0 0 0 3px rgba(0, 156, 61, 0.4), 0 0 12.5px rgba(0, 168, 89, 0.3) !important; }

/* Ссылки под формой */
body.login #nav,
body.login #backtoblog {
	background: transparent;
	padding: 16px 24px 0;
	text-align: center;
	font-family: 'Geometria', sans-serif;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.6);
	text-shadow: none;
	margin: 0;
}
body.login #nav a,
body.login #backtoblog a {
	color: #009C3D;
	text-decoration: none;
	font-weight: 400;
}
body.login #nav a:hover,
body.login #backtoblog a:hover {
	text-decoration: underline;
	color: #009C3D;
}

/* Скрываем "Language Switcher" если есть */
body.login .language-switcher { display: none; }

/* Уведомления (ошибки, "Вы вышли" и т.д.) */
body.login .notice,
body.login .message,
body.login #login_error,
body.login .login-action-resetpass #login .message {
	background: rgba(255, 255, 255, 0.05) !important;
	border: 1px solid rgba(255, 255, 255, 0.1) !important;
	border-left: 4px solid #009C3D !important;
	border-radius: 10px !important;
	color: #fff !important;
	font-family: 'Geometria', sans-serif !important;
	font-size: 14px !important;
	padding: 14px 18px !important;
	margin-bottom: 16px !important;
	box-shadow: none !important;
	text-shadow: none !important;
}
body.login #login_error {
	background: rgba(197, 42, 42, 0.12) !important;
	border-color: rgba(197, 42, 42, 0.6) !important;
	border-left-color: #C52A2A !important;
}
body.login .notice a,
body.login .message a,
body.login #login_error a { color: #009C3D; }

/* Privacy policy link */
body.login .privacy-policy-page-link { padding: 16px 24px 0; text-align: center; }
body.login .privacy-policy-page-link a {
	color: rgba(255, 255, 255, 0.5);
	font-size: 13px;
	font-family: 'Geometria', sans-serif;
}

/* Wp version footer info — спрячем */
body.login .ab-empty-item { display: none; }
