/* ============================================================
   Login — panel dividido, pantalla completa
   ============================================================ */

.nasty-login {
  --bg: #e9ffe2; --card: #fff; --ink: #1c2410; --soft: #58664c;
  --line: rgba(28, 36, 16, .13); --brand: #2b3a1f; --brand-2: #1c2410;
  --gold: #e0ab41; --gold-l: #f3d788; --gold-d: #c98a2c; --on-gold: #3a1c08;

  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.2vh 20px;
  background: #e2ece3;
  font-family: 'Montserrat', sans-serif;
  color: var(--ink);
  width: 100%;
}

:root[data-theme="sepia"] .nasty-login { --bg: #f6ecd3; --card: #fffaf0; --ink: #3b3228; --soft: #7a6c58; --line: rgba(59,50,40,.16); }
:root[data-theme="oscuro"] .nasty-login { --bg: #12170b; --card: #1e2814; --ink: #f2ead6; --soft: #c9c3ae; --line: rgba(242,234,214,.14); }

.nasty-login * { box-sizing: border-box; }

.nl-box {
  width: 100%;
  max-width: 1020px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .28);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  margin-top: 136px;
  margin-bottom: 60px;
}

/* ---------------- Panel izquierdo ---------------- */

.nl-side {
  position: relative;
  background: linear-gradient(145deg, #2D5A27 0%, #1E3D1A 100%);
  color: #f2ead6;
  display: flex;
	flex-direction: column;
  justify-content: space-between;
  align-items: center;
	padding: 48px 40px;
}

.nl-side:before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(230, 161, 59, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

.nl-side-inner { width: 100%; }

.nl-badge {
  display: inline-block;
    background: rgba(230, 161, 59, 0.2);
    border: 1px solid #e6a13b;
    color: #e6a13b;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    line-height: 1rem;
}

.nl-side h2 {
	font-size: 1.8rem;
	line-height: 1.25;
	font-weight: 800;
	margin-bottom: 16px;
	color: #fff;
}
.nl-side p {
	color: #d1e7dd;
	font-size: .95rem;
	line-height: 1.6;
}

.nl-checklist {
	list-style: none;
	padding: 0;
	margin: 30px 0;
	display: grid;
	gap: .9rem;
}

.nl-checklist li {
	display: flex;
	align-items: center;
	gap: .8rem;
	font-size: .95rem;
	color: #f3f4f6;
}

.nl-check {
  flex: none;
	display: grid;
	place-items: center;
  width: 1.9em;
	height: 1.9em;
	border-radius: 50%;
	background: rgba(242, 234, 214, .1);
	border: 1px solid rgba(224, 171, 65, .4);
	color: var(--gold-l);
	font-size: .8rem;
	line-height: 8px;
}

.nl-side-footer {
	width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.nl-author {
	display: flex;
	align-items: center;
	gap: .9rem;
}
.nl-avatar {
	display: block;
  font-size: 1rem;
	flex: none;
  width: 3em;
  height: 3em;
  border-radius: 50%;
  place-items: center;
  border: 2px solid #f3d788;
}
.nl-avatar img {
	border-radius: 50%;
}

.nl-info {
	line-height: 18px;
}

.nl-info strong {
	display: block;
	font-size: .95rem;
	color: #fff;
}

.nl-info span {
	display: block;
  font-size: 0.8rem;
}

/* ---------------- Panel derecho: formulario ---------------- */

.nl-form {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 48px 40px;
	overflow-y: auto;
}

.nl-form-inner {
	width: 100%;
}

.nl-logo {
	display: flex;
	display: none;
	align-items: center;
	gap: .6rem;
	margin-bottom: 1.6rem;
}

.nl-logo-icon { font-size: 1.8rem; }
.nl-logo-text { font-size: .68rem; font-weight: 700; line-height: 1.1; color: var(--soft); letter-spacing: .02em; }
.nl-logo-text strong { color: var(--ink); font-size: .82rem; }

.nl-form h1 {
	font-size: 1.6rem;
	margin-bottom: 6px;
  font-weight: 800;
  color: #1f2937;
	
}
.nl-sub {
	margin-bottom: 24px;
  font-size: 0.875rem;
  color: #6b7280;
}

/* Overrides PMPro */

.nl-form section.pmpro_section {
	margin: 0;
}

.nl-form .pmpro_card {
	background: transparent;
	border: none;
	box-shadow: none;
	padding: 0;
	margin: 0;
}

.nl-form .pmpro_card_content {
	padding: 0 !important;
}

.nl-form .login-username label, .nl-form .login-password label {
	display: block !important;
  color: #58664c;
  font-size: .85rem;
  text-transform: none;
	letter-spacing: .03em;
}

.nl-form .login-username, .nl-form .login-password { margin-bottom: 1.2rem; }
.nl-form .login-submit { margin: 1.4rem 0 0; }

.nl-form section.pmpro_section #loginform input[type="text"], .nl-form section.pmpro_section #loginform input[type="password"]
{
  width: 100%;
  padding: 12px 14px;
  font-size: 0.95rem;
  background-color: #f9fafb;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  outline: none;
  transition: all 0.2s ease;
}

.nl-form section.pmpro_section #loginform input[type="text"]:focus, .nl-form section.pmpro_section #loginform input[type="password"]:focus {
  border-color: #2d5a27;
  background-color: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(45, 90, 39, 0.1);
}

.nl-form .login-password {
	position: relative;
}

.nl-form .pmpro_form_field-password-toggle {
	position: absolute;
	right: .7em;
	top: calc(.5em + .8em + 20px);
	background: none;
	border: none;
	cursor: pointer;
	padding: .3em;
}

.nl-form .pmpro_form_field-password-toggle svg {
	stroke: #2d5a27;
}

.nl-form .pmpro_form_field-password-toggle .pmpro_icon-eye {
	display: none;
}

.nl-form .pmpro_form_field-password-toggle-state {
	width: 140px;
  text-align: right;
  margin-top: 3px;
  color: #6b7280;
  font-size: .95rem;
  font-weight: 600;
}

.pmpro {
	.pmpro_form_field-password-toggle button:focus, .pmpro_form_field-password-toggle button:active {
  box-shadow: none !important;
  outline: none !important;
  opacity: 1 !important;
    }
}

/* Recordarme + Olvidé contraseña en la misma fila (el JS mueve el link aquí) */
.nl-form .login-remember {
  display: flex !important;
	align-items: center !important;
	justify-content: space-between;
	margin-bottom: 0 !important;
}
.nl-form .login-remember label {
	display: flex;
  align-items: center;
  gap: .5em;
  text-transform: none;
  font-weight: 400;
  color: #4b5563;
  font-size: .85rem;
  margin: 0;
}

.nl-form input[type="checkbox"] {
	accent-color: var(--gold-d);
	width: 1.1em;
	height: 1.1em;
}

.nl-form .login-remember a {
	font-size: .85rem;
  color: #2d5a27;
  text-decoration: none;
  font-weight: 600;
}

.nl-form .login-remember a:hover {
	text-decoration: underline;
}

/* Botón: sólido en el verde de marca, con flecha (texto agregado por JS) */

.nl-form section.pmpro_section #loginform #wp-submit {
  background-color: #2d5a27;
  border: 1px solid #2d5a27;
  transition: transform .2s, background .2s;
}

.nl-form section.pmpro_section #loginform #wp-submit:hover {
	background-color: #34692d;
  background-position: 0 0;
  border-color: #34692d;
  color: #ffffff;
}

.nl-form .pmpro_card_actions { display: none; } /* el link ya se movió junto a "Recordarme" */

.nl-form p, .nl-form h2, .nl-form h3 {
	color: #6b7280;
}

.nl-alt {
	text-align: center;
  margin-top: 1.6rem !important;
  font-size: .85rem;
}

.nl-alt a {
	color: #2d5a27;
  font-weight: 700;
  text-decoration: none;
}

.nl-alt a:hover {
	text-decoration: underline;
}

/* ---------------- Responsive ---------------- */

@media (max-width: 921px) {
  .nl-box { grid-template-columns: 1fr; height: auto; max-height: 94vh; overflow-y: auto; }
  .nl-side { display: none; }
  .nl-form { padding: 2.4rem 1.6rem; }
}

@media (max-width: 380px) {
  .nl-form .login-remember { flex-direction: column; align-items: flex-start; gap: .6rem; }
}

/* -- ¿Contraseña olvidada? --*/

.nl-form #pmpro_login .pmpro_lost_password-instructions {
	color: #6b7280;
  font-size: 0.875rem;
  margin-top: -5px;
  margin-bottom: 25px;
}

.nl-form #pmpro_login .pmpro_spacer {
	display: none;
}

.nl-form #pmpro_login #lostpasswordform label {
	display: block !important;
	color: #58664c;
  font-size: .85rem;
  text-transform: none;
  letter-spacing: .03em;
}

.nl-form #pmpro_login #lostpasswordform input[type="text"] {
	width: 100%;
  padding: 12px 14px;
  font-size: 0.95rem;
  background-color: #f9fafb;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  outline: none;
  transition: all 0.2s ease;
}

.nl-form #pmpro_login #lostpasswordform input[type="text"]:focus {
	border-color: #2d5a27;
  background-color: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(45, 90, 39, 0.1);
}

.nl-form #pmpro_login #lostpasswordform .pmpro_btn-submit {
	background-color: #2d5a27;
  border: 1px solid #2d5a27;
  transition: transform .2s, background .2s;
}

.nl-form #pmpro_login #lostpasswordform .pmpro_btn-submit:hover {
	background-color: #34692d;
  background-position: 0 0;
  border-color: #34692d;
  color: #ffffff;
}

.nl-form section.pmpro_section .pmpro_message.pmpro_error {
    background-color: #ffdfdf;
    border-color: #d7a9a9;
    color: #8f3737;
    padding: 10px 16px;
    margin-top: -5px;
    margin-bottom: 25px;
}