/* Azul editorial: identidad compartida de acceso, alta y recuperación.
   Se carga después de ui-system.css. No cambia el comportamiento de los formularios. */
body.pp-auth.pp-auth--editorial {
    --auth-gold: #e9c65a;
    --auth-line: #dbe3ef;
    --auth-muted: #5b6b82;
    margin: 0;
    background: #fff;
    color: var(--pp-blue-900);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color-scheme: light;
}

.pp-auth--editorial *, .pp-auth--editorial *::before, .pp-auth--editorial *::after { box-sizing: border-box; }
.pp-auth--editorial :is(h1, h2, p) { margin: 0; }
.pp-auth--editorial .page-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 49%);
    min-height: 100vh;
    min-height: 100dvh;
}
.pp-auth--editorial .editorial-section {
    position: sticky;
    top: 0;
    align-self: start;
    height: 100vh;
    height: 100dvh;
    min-height: 680px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(32px, 4.1vw, 80px);
    color: #fff;
    background-image: linear-gradient(180deg, rgba(12,48,99,.2), rgba(12,47,99,.62) 45%, rgba(9,32,72,.97)), url('../../img/Lagos-1600.webp');
    background-position: 40% center;
    background-size: cover;
}
/* Variantes ligeras de la foto (el original pesaba 1,1 MB): 960 en móvil, 1920 en pantallas grandes. */
@media (max-width: 900px) {
    .pp-auth--editorial .editorial-section { background-image: linear-gradient(180deg, rgba(12,48,99,.2), rgba(12,47,99,.62) 45%, rgba(9,32,72,.97)), url('../../img/Lagos-960.webp'); }
}
@media (min-width: 1600px) {
    .pp-auth--editorial .editorial-section { background-image: linear-gradient(180deg, rgba(12,48,99,.2), rgba(12,47,99,.62) 45%, rgba(9,32,72,.97)), url('../../img/Lagos.webp'); }
}
.pp-auth--editorial .auth-brandline {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: auto;
    padding-bottom: 48px;
    color: #f1f5fc;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
}
.pp-auth--editorial .auth-brandline::before {
    content: '';
    width: 26px;
    height: 3px;
    flex-shrink: 0;
    background: var(--auth-gold);
}
.pp-auth--editorial .message-container { max-width: 650px; margin: 25px 0 50px; }
.pp-auth--editorial .separator-line { width: 42px; height: 3px; background: var(--auth-gold); margin-bottom: 28px; }
.pp-auth--editorial .hero-text {
    margin-bottom: 24px;
    font-size: clamp(36px, 4.5vw, 64px);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -.045em;
    text-wrap: balance;
}
.pp-auth--editorial .hero-text > br { display: none; }
.pp-auth--editorial .hero-text span { display: block; margin-top: 11px; color: var(--auth-gold); }
.pp-auth--editorial .hero-sub { max-width: 420px; font-size: 14px; line-height: 1.85; color: #e0e9f7; }
.pp-auth--editorial .auth-location {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.19);
    color: #c5d5ec;
    font-size: 11px;
    letter-spacing: .5px;
}
.pp-auth--editorial .auth-location i { color: var(--auth-gold); font-size: 15px; }
body.pp-auth--editorial .login-sidebar {
    position: relative;
    min-width: 0;
    display: flex;
    align-items: center;
    padding: 48px clamp(32px, 4.3vw, 80px) 36px;
    background: #fff;
}
.pp-auth--editorial .login-sidebar::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, var(--pp-blue), var(--pp-sky) 83%, var(--auth-gold) 83%);
}
.pp-auth--editorial .auth-content { width: 100%; max-width: 440px; margin: 0 auto; }
body.pp-auth--editorial .login-header { margin-bottom: 29px; }
body.pp-auth--editorial .login-logo { display: block; width: min(276px, 100%); height: auto; margin-bottom: 39px; }
body.pp-auth--editorial .login-header h2 { margin-bottom: 12px; font-size: 30px; line-height: 1.2; font-weight: 600; letter-spacing: -1px; }
body.pp-auth--editorial .login-header p { color: var(--auth-muted); font-size: 13px; line-height: 1.75; }
body.pp-auth--editorial .input-group { min-width: 0; margin-bottom: 19px; }
.pp-auth--editorial .form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
body.pp-auth--editorial .label-modern { display: block; margin-bottom: 8px; color: #344e72; font-size: 12px; font-weight: 600; letter-spacing: normal; }
.pp-auth--editorial .field-container { position: relative; }
body.pp-auth--editorial .dark-input {
    width: 100%;
    min-width: 0;
    min-height: 49px;
    padding: 12px 14px 12px 42px;
    border: 1px solid var(--auth-line);
    border-radius: 10px;
    background: #f7f9fd;
    color: var(--pp-blue-900);
    font: inherit;
    font-size: 14px;
    line-height: 1.5;
}
.pp-auth--editorial .dark-input::placeholder { color: #6c7f99; opacity: 1; }
body.pp-auth--editorial .dark-input:focus { border-color: var(--pp-sky); background: #fff; box-shadow: none; }
body.pp-auth--editorial :is(a, button, input):focus-visible { outline: 2px solid var(--pp-sky); outline-offset: 3px; }
body.pp-auth--editorial .dark-input[readonly] { background: var(--pp-disabled-bg); color: var(--auth-muted); }
body.pp-auth--editorial .field-icon { position: absolute; left: 14px; top: 24px; transform: translateY(-50%); color: #4772ac; font-size: 16px; pointer-events: none; }
body.pp-auth--editorial .input-hint { margin-top: 8px; font-size: 12px; line-height: 1.65; color: var(--auth-muted); }
body.pp-auth--editorial .code-input { padding-inline: 16px; text-align: center; letter-spacing: .35em; font-size: 18px; font-weight: 600; }
body.pp-auth--editorial .pp-password-toggle { color: #4772ac; }
body.pp-auth--editorial .pp-password-toggle:hover { color: var(--pp-blue); background: var(--pp-blue-50); }
body.pp-auth--editorial .pp-error-text { color: var(--pp-danger); }
body.pp-auth--editorial .dark-input[aria-invalid="true"] { border-color: var(--pp-danger); }
body.pp-auth--editorial .btn-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 50px;
    margin-top: 25px;
    padding: 14px 17px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(110deg, var(--pp-blue), #0066e5);
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 7px 16px rgba(30,74,144,.1);
    transition: filter .18s ease, box-shadow .18s ease;
}
.pp-auth--editorial .btn-action i { flex-shrink: 0; color: #f4d77e; transition: transform .18s ease; }
/* El hover oscurece el degradado en vez de sustituirlo: --pp-sky-600 es claro en
   el tema oscuro y dejaba el texto blanco ilegible. Solo con puntero real. */
@media (hover: hover) {
    body.pp-auth--editorial .btn-action:hover:not(:disabled) { filter: brightness(.9); box-shadow: 0 9px 20px rgba(30,74,144,.2); color: #fff; }
    body.pp-auth--editorial .btn-action:hover:not(:disabled) i { transform: translateX(3px); }
}
body.pp-auth--editorial .btn-action:active:not(:disabled) { filter: brightness(.82); box-shadow: 0 3px 8px rgba(30,74,144,.18); }
body.pp-auth--editorial .btn-action:active:not(:disabled) i { transform: none; }
.pp-auth--editorial .btn-action:disabled { opacity: .65; cursor: wait; }
@media (prefers-reduced-motion: reduce) {
    body.pp-auth--editorial .btn-action, body.pp-auth--editorial .btn-action i { transition: none; }
    body.pp-auth--editorial .btn-action:hover:not(:disabled) i { transform: none; }
}
body.pp-auth--editorial .sidebar-footer { position: relative; display: grid; gap: 13px; margin-top: 29px; padding-top: 24px; border-top: 1px solid var(--auth-line); }
.pp-auth--editorial .sidebar-footer::before { content: ''; position: absolute; left: 0; top: -1px; width: 36px; height: 2px; background: var(--auth-gold); }
.pp-auth--editorial :is(.sidebar-footer a, .secondary-link) { display: inline-flex; align-items: center; gap: 10px; min-height: 25px; color: #2e527f; font-size: 12px; text-decoration: none; }
.pp-auth--editorial :is(.sidebar-footer a, .secondary-link) { transition: color .15s ease; }
.pp-auth--editorial :is(.sidebar-footer a, .secondary-link):hover { color: var(--pp-sky-600); text-decoration: underline; text-underline-offset: 3px; }
.pp-auth--editorial .sidebar-footer a i { flex-shrink: 0; color: #4772ac; }
.pp-auth--editorial .sidebar-copyright { margin-top: 12px; color: #667a94; font-size: 11px; }
.pp-auth--editorial .secondary-link { margin-top: 16px; }
.pp-auth--editorial .banner { display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: center; gap: 14px; margin-bottom: 22px; padding: 14px; border: 1px solid transparent; border-radius: 10px; font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
.pp-auth--editorial .banner-icon { width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.pp-auth--editorial .error-banner { background: var(--pp-danger-50); border-color: #f4c5cc; color: var(--pp-danger); }
.pp-auth--editorial .error-banner .banner-icon { background: #f8dce1; }
.pp-auth--editorial .success-banner { background: var(--pp-success-50); border-color: #b8dfd4; color: var(--pp-success); }
.pp-auth--editorial .success-banner .banner-icon { background: #cdebe1; }
.pp-auth--editorial :is(.step-note, .done-panel) { margin-bottom: 20px; padding: 14px; border-radius: 10px; background: var(--pp-blue-50); color: #344e72; font-size: 12px; line-height: 1.7; }
body.pp-auth--register .login-sidebar { padding-top: 32px; padding-bottom: 32px; }
body.pp-auth--register .login-logo { margin-bottom: 25px; }
body.pp-auth--register .input-group { margin-bottom: 15px; }

@media (max-width: 900px) {
    .pp-auth--editorial .page-container { display: block; }
    .pp-auth--editorial .editorial-section { display: none; }
    body.pp-auth--editorial .login-sidebar { min-height: 100vh; min-height: 100dvh; align-items: flex-start; padding: max(35px, env(safe-area-inset-top, 0px)) max(25px, env(safe-area-inset-right, 0px)) max(35px, env(safe-area-inset-bottom, 0px)) max(25px, env(safe-area-inset-left, 0px)); }
    body.pp-auth--editorial .login-logo { width: min(285px, 100%); height: auto; margin-bottom: 39px; }
    body.pp-auth--editorial .login-header h2 { font-size: 28px; }
    body.pp-auth--editorial .login-header p { font-size: 14px; }
    body.pp-auth--editorial .dark-input { font-size: 16px; }
    .pp-auth--editorial .sidebar-footer a { min-height: 40px; }
    body.pp-auth--register .login-logo { margin-bottom: 28px; }
}
@media (max-width: 450px) {
    .pp-auth--editorial .form-row { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 345px) {
    body.pp-auth--editorial .login-sidebar { padding-inline: 20px; }
    body.pp-auth--editorial .login-header h2 { font-size: 26px; }
}

/* Registro en dos columnas. El formulario son cuatro filas de dos campos más el nombre
   a ancho completo; en móvil (<=600px) todo vuelve a una sola columna. */
body.pp-auth--register-wide .register-password-hint { margin-top: -6px; }
body.pp-auth--register-wide .login-header p { max-width: 62ch; }
@media (min-width: 601px) and (max-width: 900px) {
    body.pp-auth--register-wide .auth-content { max-width: 640px; }
    body.pp-auth--register-wide .form-row { gap: 0 18px; }
}
@media (max-width: 600px) {
    body.pp-auth--register-wide .form-row { grid-template-columns: 1fr; gap: 0; }
}
/* Escritorio: la rejilla de la página (foto + columna del formulario) es la misma que en
   login y restablecimiento; solo se recoge el padding lateral para que quepan dos campos. */
@media (min-width: 901px) and (max-width: 1199px) {
    body.pp-auth--register-wide .form-row { grid-template-columns: 1fr; gap: 0; }
}
@media (min-width: 1200px) {
    body.pp-auth--register-wide .login-sidebar { padding-inline: clamp(28px, 3vw, 56px); }
    body.pp-auth--register-wide .auth-content { max-width: 720px; }
    body.pp-auth--register-wide .form-row { gap: 0 18px; }
    body.pp-auth--register-wide .login-logo { width: min(240px, 100%); margin-bottom: 28px; }
    body.pp-auth--register-wide .login-header { margin-bottom: 24px; }
}
