/**
 * Signatura — pagina de login în două coloane:
 * panoul de autentificare pe stânga, imaginea (bg-login.jpg) pe dreapta.
 * Wordmark text (numele site-ului) — va fi înlocuit cu logo.
 */

body.login {
	background: #F7F7FC;
	min-height: 100vh;
	margin: 0;
	font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.login form,
.login label,
.login input,
.login .button {
	font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Coloana dreaptă: imaginea în ramă rotunjită ---------- */
.ntr-login-visual {
	position: fixed;
	top: 16px;
	right: 16px;
	bottom: 16px;
	left: 536px;
	border-radius: 24px;
	overflow: hidden;
	box-shadow: 0 24px 70px rgba(30, 27, 46, .22);
}

/* Imaginea propriu-zisă, cu zoom lent abia perceptibil (Ken Burns) */
.ntr-login-visual::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(210deg, rgba(30, 27, 46, .18), rgba(67, 56, 202, .22) 55%, rgba(139, 92, 246, .32)),
		url("images/bg-login.jpg") center / cover no-repeat;
	animation: ntr-ken 26s ease-out both;
}

@keyframes ntr-ken {
	from { transform: scale(1.08); }
	to   { transform: scale(1); }
}

/* Glass card cu mesaj + chip-uri, jos pe imagine */
.ntr-login-promo {
	position: absolute;
	left: 28px;
	bottom: 28px;
	max-width: 430px;
	padding: 18px 20px 16px;
	border-radius: 18px;
	background: rgba(255, 255, 255, .14);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28);
	color: #fff;
	animation: ntr-fade-up .6s ease .45s both;
}

.ntr-login-promo p {
	margin: 0 0 12px;
	font-family: "Sora", "Manrope", sans-serif;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.45;
	text-shadow: 0 1px 10px rgba(30, 27, 46, .35);
}

.ntr-login-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ntr-login-chips span {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .16);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
	font-size: 12.5px;
	font-weight: 600;
}

.ntr-login-chips i {
	display: block;
	width: 15px;
	height: 15px;
	background-color: #fff;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: 15px 15px;
	mask-size: 15px 15px;
}

.ntr-lp-cal {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2v4'/%3E%3Cpath d='M16 2v4'/%3E%3Crect width='18' height='18' x='3' y='4' rx='2'/%3E%3Cpath d='M3 10h18'/%3E%3Cpath d='m9 16 2 2 4-4'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2v4'/%3E%3Cpath d='M16 2v4'/%3E%3Crect width='18' height='18' x='3' y='4' rx='2'/%3E%3Cpath d='M3 10h18'/%3E%3Cpath d='m9 16 2 2 4-4'/%3E%3C/svg%3E");
}

.ntr-lp-users {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
}

.ntr-lp-file {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z'/%3E%3Cpath d='M14 2v4a2 2 0 0 0 2 2h4'/%3E%3Cpath d='M10 9H8'/%3E%3Cpath d='M16 13H8'/%3E%3Cpath d='M16 17H8'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z'/%3E%3Cpath d='M14 2v4a2 2 0 0 0 2 2h4'/%3E%3Cpath d='M10 9H8'/%3E%3Cpath d='M16 13H8'/%3E%3Cpath d='M16 17H8'/%3E%3C/svg%3E");
}

/* ---------- Coloana stângă: panoul de autentificare ---------- */
#login {
	position: relative;
	z-index: 1;
	box-sizing: border-box;
	width: 520px !important;
	max-width: 100%;
	min-height: 100vh;
	margin: 0 !important;
	padding: 48px 76px !important;
	background: #fff;
	display: flex;
	flex-direction: column;
	justify-content: center;
	box-shadow: 24px 0 60px rgba(15, 23, 42, .16);
}

/* Logo în loc de logo-ul WordPress (logo-login.png, 640×130) */
.login h1 {
	text-align: left;
	margin: 0 0 22px;
}

.login h1 a {
	display: block;
	width: 320px;
	height: 65px;
	margin: 0;
	background: url("images/logo-login.png") left center / contain no-repeat;
	text-indent: -9999px;
	overflow: hidden;
}

.login h1 a:hover,
.login h1 a:focus {
	box-shadow: none;
	outline: none;
}

/* Formularul devine plat — panoul alb e „cardul" */
.login form {
	background: transparent;
	border: none;
	border-radius: 0;
	box-shadow: none;
	padding: 10px 0 0;
	margin-top: 14px;
	overflow: visible;
}

.login label {
	color: #0F172A;
	font-weight: 600;
	font-size: 13.5px;
    margin-bottom: 5px;
    letter-spacing: -0.020em;
}

.login input[type="text"],
.login input[type="password"] {
	box-sizing: border-box;
	height: 48px;
	font-size: 15.5px;
	border-radius: 10px;
	border-color: #E2E8F0;
	background: #F9FAFB;
	padding: 10px 14px 10px 42px;
}

.login input[type="text"]:focus,
.login input[type="password"]:focus {
	border-color: #6366F1;
	background: #fff;
	box-shadow: 0 0 0 3px rgba(99, 102, 241, .2);
}

/* Icon-uri în inputuri: utilizator + lacăt */
.login form p:has(> #user_login) {
	position: relative;
}

.login form p:has(> #user_login)::after,
.login .wp-pwd::after {
	content: "";
	position: absolute;
	left: 14px;
	width: 18px;
	height: 18px;
	background-color: #9CA3AF;
	pointer-events: none;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: 18px 18px;
	mask-size: 18px 18px;
	transition: background-color .15s ease;
}

/* Inputul de utilizator are label deasupra și margine jos (16px) — ancorăm de jos:
   16px margine + 24px (jumătate din inputul de 48px) - 9px (jumătate de icon) = 31px */
.login form p:has(> #user_login)::after {
	bottom: 31px;
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='5'/%3E%3Cpath d='M20 21a8 8 0 0 0-16 0'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='5'/%3E%3Cpath d='M20 21a8 8 0 0 0-16 0'/%3E%3C/svg%3E");
}

.login .wp-pwd::after {
	top: 50%;
	transform: translateY(-50%);
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='11' x='3' y='11' rx='2' ry='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='11' x='3' y='11' rx='2' ry='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E");
}

.login form p:has(> #user_login:focus)::after,
.login .wp-pwd:has(input:focus)::after {
	background-color: #4F46E5;
}

/* Buton principal cu degrade animat la hover */
.login .button-primary,
.wp-core-ui.login .button-primary {
	width: 100%;
	margin-top: 6px;
	background: linear-gradient(115deg, #6366F1 0%, #8B5CF6 50%, #6366F1 100%);
	background-size: 220% 100%;
	background-position: 0 0;
	border: none;
	color: #fff;
	text-shadow: none;
	box-shadow: 0 8px 20px rgba(79, 70, 229, .4);
	font-weight: 700;
	border-radius: 10px;
	height: 42px;
	line-height: 42px;
	font-size: 14px;
	transition: transform .12s ease, box-shadow .15s ease, background-position .45s ease;
}

.login .button-primary:hover,
.login .button-primary:focus {
	color: #fff;
	background-position: 100% 0;
	box-shadow: 0 12px 28px rgba(79, 70, 229, .5);
	transform: translateY(-1px);
}

/* Starea „Se autentifică…" (clasa e pusă de scriptul din login_footer) */
.login #wp-submit.ntr-loading {
	pointer-events: none;
	animation: ntr-btn-wait 1.1s linear infinite;
}

@keyframes ntr-btn-wait {
	from { background-position: 0 0; }
	to   { background-position: 220% 0; }
}

.login p.submit {
	position: relative;
}

.login p.submit.ntr-loading::after {
	content: "";
	position: absolute;
	right: 16px;
	top: 50%;
	width: 16px;
	height: 16px;
	margin-top: -5px;
	border: 2px solid rgba(255, 255, 255, .45);
	border-top-color: #fff;
	border-radius: 50%;
	animation: ntr-spin .7s linear infinite;
}

@keyframes ntr-spin {
	to { transform: rotate(360deg); }
}

/* Linkul „Ți-ai uitat parola?" */
.login #nav {
	text-align: left;
	margin: 20px 0 0;
	padding: 0;
}

.login #nav a {
	color: #6366F1;
	font-weight: 600;
	transition: color .15s ease;
}

.login #nav a:hover,
.login #nav a:focus {
	color: #4338CA;
}

/* „Înapoi la blog" — nu avem front-end */
.login #backtoblog {
	display: none !important;
}

/* Mesaje — casete tentate, cu icon per tip de informație */
.login .message,
.login .success,
.login #login_error {
	position: relative;
	margin: 18px 0 6px;
	padding: 13px 16px 13px 46px;
	border: none;
	border-radius: 12px;
	font-size: 13.5px;
	line-height: 1.45;
	color: #1E1B2E;
	box-shadow: none;
}

.login .message::before,
.login .success::before,
.login #login_error::before {
	content: "";
	position: absolute;
	left: 15px;
	top: 50%;
	transform: translateY(-50%);
	width: 20px;
	height: 20px;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: 20px 20px;
	mask-size: 20px 20px;
}

/* Informare (ex. „Acum ești dezautentificat.") — indigo */
.login .message {
	background: rgba(99, 102, 241, .09);
	box-shadow: inset 0 0 0 1px rgba(99, 102, 241, .22);
}

.login .message::before {
	background-color: #4F46E5;
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4'/%3E%3Cpath d='M12 8h.01'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4'/%3E%3Cpath d='M12 8h.01'/%3E%3C/svg%3E");
}

/* Confirmare (ex. parolă resetată) — verde */
.login .success {
	background: rgba(22, 163, 74, .09);
	box-shadow: inset 0 0 0 1px rgba(22, 163, 74, .22);
}

.login .success::before {
	background-color: #16A34A;
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E");
}

/* Eroare — roșu */
.login #login_error {
	background: rgba(239, 68, 68, .08);
	box-shadow: inset 0 0 0 1px rgba(239, 68, 68, .25);
}

.login #login_error::before {
	background-color: #DC2626;
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' x2='12' y1='8' y2='12'/%3E%3Cline x1='12' x2='12.01' y1='16' y2='16'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' x2='12' y1='8' y2='12'/%3E%3Cline x1='12' x2='12.01' y1='16' y2='16'/%3E%3C/svg%3E");
}

.login .message a,
.login .success a,
.login #login_error a {
	color: #4F46E5;
	font-weight: 600;
}

/* Butonul „arată parola" — centrat pe verticală în input.
   Marginea de jos trece de pe input pe wrapper, ca 50% să fie mijlocul inputului. */
.login .wp-pwd {
	position: relative;
	margin: 2px 0 16px;
}

.login .wp-pwd .input,
.login .wp-pwd input[type="password"] {
	margin: 0;
}

.login .wp-pwd .wp-hide-pw {
	position: absolute;
	top: 0;
	bottom: 0;
	right: 4px;
	transform: none;
	height: auto;
	min-height: 0;
	width: 38px;
	min-width: 0;
	padding: 0;
	margin: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	color: #6B7280;
	border: none;
	background: transparent;
	box-shadow: none;
}

.login .wp-pwd .wp-hide-pw .dashicons {
	width: 20px;
	height: 20px;
	font-size: 20px;
	line-height: 1;
}

.login .wp-pwd .wp-hide-pw:hover,
.login .wp-pwd .wp-hide-pw:focus {
	color: #4F46E5;
}

.login .wp-pwd .wp-hide-pw:focus {
	box-shadow: 0 0 0 2px rgba(99, 102, 241, .35);
	border-radius: 8px;
	outline: none;
}

.login .forgetmenot label {
	color: #475569;
	font-weight: 400;
}

/* ---------- Footer discret pe panou ---------- */
.ntr-login-copy {
	position: fixed;
	left: 0;
	bottom: 18px;
	width: 520px;
	margin: 0;
	z-index: 2;
	text-align: center;
	font-size: 12px;
	color: #9CA3AF;
}

/* ---------- Animații de intrare (cascadă) ---------- */
@keyframes ntr-fade-up {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

.login h1,
.login .message,
.login .success,
.login #login_error,
.login form,
.login #nav,
.ntr-login-copy {
	animation: ntr-fade-up .5s ease both;
}

.login h1          { animation-delay: .05s; }
.login .message,
.login .success,
.login #login_error { animation-delay: .12s; }
.login form         { animation-delay: .18s; }
.login #nav         { animation-delay: .26s; }
.ntr-login-copy     { animation-delay: .34s; }

@media (prefers-reduced-motion: reduce) {
	.login h1,
	.login .message,
	.login .success,
	.login #login_error,
	.login form,
	.login #nav,
	.ntr-login-copy,
	.ntr-login-promo,
	.ntr-login-visual::before,
	.login #wp-submit.ntr-loading {
		animation: none !important;
	}
}

/* ---------- Relogin-ul din admin (fereastra mică) — fără layout split ---------- */
body.interim-login .ntr-login-visual,
body.interim-login .ntr-login-copy {
	display: none;
}

body.interim-login #login {
	width: auto !important;
	min-height: 0;
	margin: 0 auto !important;
	padding: 24px !important;
	box-shadow: none;
}

/* ---------- Ecrane înguste: doar panoul, fără imagine ---------- */
@media (max-width: 900px) {
	.ntr-login-visual {
		display: none;
	}

	#login {
		width: 100% !important;
		padding: 48px 28px !important;
		box-shadow: none;
		align-items: center;
	}

	#login > * {
		width: 100%;
		max-width: 400px;
	}

	.ntr-login-copy {
		width: 100%;
	}
}
