/*
 * PrayCrew — Login showcase (rediseño del PO, 3 paneles).
 * Scope: SOLO body.login-showcase. No afecta register/first-church/forgot/reset
 *        (esas siguen con el look de brand.css de 2 paneles).
 * Carga: DESPUÉS de brand.css para ganar la cascada (override de inputs/botones).
 *
 * Reusa los tokens --pc-brand-* definidos en brand.css.
 * Paleta y tipografía idénticas al prototipo del PO
 * (docs/product/portal-church/login-prototype/praycrew_login.html).
 */

/* ════════════════════════════════════════
   RESET DEL LAYOUT DIAMOND PARA ESTA PANTALLA
   El login estándar de Diamond usa .login-wrapper/.login-panel/.login-image;
   aquí montamos un layout propio centrado, así que reseteamos el body.
════════════════════════════════════════ */
body.login-showcase {
    min-height: 100vh;
    /* Fondo dividido: el margen izquierdo extiende el blanco del panel del form
       y el derecho el crema del lado del dashboard. La costura central queda
       oculta tras el contenido centrado (sin franjas oscuras a los lados). */
    background: linear-gradient(to right, #ffffff 50%, #EFF0EC 50%) !important;
    font-family: var(--pc-font-sans);
    padding: 0;
    margin: 0;
}

/* ════════════════════════════════════════
   LAYOUT — pantalla completa (sin tarjeta flotante)
════════════════════════════════════════ */
body.login-showcase .wrap {
    display: flex;
    width: 100%;
    max-width: 1440px;   /* composición centrada — evita estiramiento en pantallas anchas */
    margin: 0 auto;
    min-height: 100vh;
    overflow: hidden;
}

/* ════════════════════════════════════════
   LEFT — FORM PANEL
════════════════════════════════════════ */
body.login-showcase .left {
    width: 380px;
    flex-shrink: 0;
    background: #ffffff;
    padding: 40px 36px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;   /* form centrado verticalmente */
    gap: 22px;
    text-align: center;        /* logo, frases, labels, botones y versículo centrados */
    z-index: 2;
}

/* Excepción: el texto que se ESCRIBE en los inputs se queda a la izquierda
   (un email/contraseña centrado se lee mal). */
body.login-showcase .login-form .ui-inputtext,
body.login-showcase .login-form input.ui-password,
body.login-showcase .login-form .ui-password input {
    text-align: left;
}

/* El form debe caber en el panel izquierdo (brand.css lo fuerza a 440px,
   más ancho que .left → los inputs se desbordaban sobre la foto). */
body.login-showcase .login-form {
    width: 100% !important;
    max-width: 100% !important;
}

body.login-showcase .logo-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-bottom: 28px;
}
body.login-showcase .logo-row .logo {
    height: 28px;
    width: auto;
}
body.login-showcase .logo-text {
    font-size: 15px;
    font-weight: 500;
    color: var(--pc-brand-deep);
    letter-spacing: -0.2px;
}

/* === Form (override del look pill/redondeado de brand.css) === */
body.login-showcase .login-form h2 {
    font-family: var(--pc-font-serif);
    font-size: 22px;
    font-weight: 300;
    font-style: normal;
    color: #0E191F;
    margin: 0 0 5px 0;
    letter-spacing: -0.3px;
    line-height: 1.3;
}
body.login-showcase .login-form .sub {
    font-size: 12px;
    color: var(--pc-brand-shade);
    margin-bottom: 20px;
    line-height: 1.55;
}

/* Labels visibles tipo prototipo */
body.login-showcase .login-form .field-label {
    display: block;
    font-size: 9px;
    font-weight: 500;
    color: var(--pc-brand-shade);
    letter-spacing: 0.6px;
    text-transform: uppercase;
    margin-bottom: 3px;
}

/* Inputs — rectangulares 8px, fondo gris suave (override de brand.css !important) */
body.login-showcase .login-form .ui-inputtext,
body.login-showcase .login-form input.ui-password,
body.login-showcase .login-form .ui-password input {
    width: 100% !important;
    height: 40px;
    padding: 0 12px !important;
    border: 1px solid #EFEFEF !important;
    border-radius: 8px !important;
    font-size: 13px;
    color: #0E191F;
    background: #FAFAFA !important;
    box-shadow: none !important;
    margin-bottom: 10px;
    box-sizing: border-box;
}
body.login-showcase .login-form .ui-inputtext:focus,
body.login-showcase .login-form input.ui-password:focus,
body.login-showcase .login-form .ui-password input:focus {
    border-color: var(--pc-brand-deep) !important;
    background: #fff !important;
    box-shadow: none !important;
}
/* p:password wrapper a ancho completo */
body.login-showcase .login-form .ui-password {
    width: 100% !important;
    display: block;
}

/* ── Botones del panel (uniformes en TODAS las pantallas de auth) ──
   Base común: rectangular 8px, full-width, centrado vertical, mismo gap.
   Aplica en cualquier parte del panel izquierdo (.left), no solo en el form. */
body.login-showcase .left .ui-button {
    width: 100% !important;
    min-height: 44px;
    border-radius: 8px !important;
    font-size: 13px;
    font-weight: 500;
    padding: 0 16px !important;
    margin: 0 0 12px 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    cursor: pointer;
}

/* Primario — relleno de marca */
body.login-showcase .left .btn-primary.ui-button {
    margin-top: 4px;
    background: var(--pc-brand-deep) !important;
    color: #fff !important;
    border: 1px solid var(--pc-brand-deep) !important;
    transition: background 0.2s;
}
body.login-showcase .left .btn-primary.ui-button:hover {
    background: #1a3040 !important;
    border-color: #1a3040 !important;
    color: #fff !important;
}

/* Secundario — outline */
body.login-showcase .left .btn-register.ui-button {
    background: transparent !important;
    color: var(--pc-brand-deep) !important;
    border: 1.5px solid var(--pc-brand-deep) !important;
    transition: background 0.2s, color 0.2s;
}
body.login-showcase .left .btn-register.ui-button:hover {
    background: var(--pc-brand-deep) !important;
    color: #fff !important;
}

/* Forgot link centrado */
body.login-showcase .forgot {
    display: block;
    text-align: center;
    margin-top: 10px;
    font-size: 10px;
    color: var(--pc-brand-shade);
    text-decoration: none;
}
body.login-showcase .forgot:hover {
    color: var(--pc-brand-deep);
}

/* Contenedor del CTA de registro (login / register): separador + prompt */
body.login-showcase .register-cta {
    margin-top: 16px;
    border-top: 1px solid #EFEFEF;
    padding-top: 14px;
}
body.login-showcase .register-cta p {
    font-size: 10px;
    color: var(--pc-brand-shade);
    margin-bottom: 8px;
    text-align: center;
}

/* Verso al pie */
body.login-showcase .verse {
    font-family: var(--pc-font-serif);
    font-style: italic;
    font-size: 9.5px;
    color: var(--pc-brand-shade);
    line-height: 1.6;
    padding-top: 13px;
    border-top: 1px solid #EFEFEF;
    margin-top: 13px;
}

/* Banner de sesión expirada — compacto para el panel angosto */
body.login-showcase .login-form .session-expired-banner {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .6rem .75rem;
    margin-bottom: 14px;
    background: #FFF6F0;
    border: 1px solid #F2CDB6;
    border-left: 3px solid var(--pc-brand-warm);
    border-radius: 8px;
    color: #8a4b2f;
    font-size: 11px;
    text-align: left;
    line-height: 1.35;
}

/* Mensajes de error PrimeFaces compactos */
body.login-showcase .login-form .ui-messages {
    margin: 0 0 12px 0;
    font-size: 11px;
}

/* ════════════════════════════════════════
   RIGHT — SPLIT SCREEN
════════════════════════════════════════ */
body.login-showcase .right {
    flex: 1;
    position: relative;
    overflow: hidden;
    display: flex;
    min-height: 100vh;
}

/* ── PRAYER HALF ── */
body.login-showcase .prayer-half {
    width: 44%;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, calc(100% - 48px) 100%, 0 100%);
}

/* La foto se inyecta vía background-image inline en el XHTML (resource EL),
   porque el ResourceHandler de JSF crashea si encuentra EL dentro de un .css.
   NO escribir la sintaxis literal de EL (hashtag+llave) aquí: el handler la
   evalúa y devuelve el .css vacío (0 bytes). */
body.login-showcase .prayer-photo {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 20%;
}

body.login-showcase .prayer-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
        rgba(8, 18, 26, 0.72) 0%,
        rgba(8, 18, 26, 0.18) 30%,
        rgba(8, 18, 26, 0.12) 55%,
        rgba(8, 18, 26, 0.78) 100%);
}

/* Notification cards column */
body.login-showcase .notif-col {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-52%);
    display: flex;
    flex-direction: column;
    gap: 9px;
    width: 252px;
    z-index: 10;
}
body.login-showcase .notif-card {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 13px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(14px) scale(0.97);
    transition: opacity 0.38s cubic-bezier(0.23, 1, 0.32, 1), transform 0.38s cubic-bezier(0.23, 1, 0.32, 1);
}
body.login-showcase .notif-card.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}
body.login-showcase .notif-card.dim {
    opacity: 0.3;
    transform: translateY(0) scale(0.98);
    transition: opacity 0.35s ease, transform 0.35s ease;
}
body.login-showcase .notif-icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    flex-shrink: 0;
    object-fit: cover;
}
body.login-showcase .notif-body {
    min-width: 0;
}
body.login-showcase .notif-title {
    font-size: 12.5px;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
body.login-showcase .notif-title span {
    font-weight: 700;
}
body.login-showcase .notif-sub {
    font-size: 10.5px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 2px;
}

/* Bottom copy */
body.login-showcase .prayer-copy {
    position: absolute;
    bottom: 22px;
    left: 18px;
    right: 56px;
    z-index: 10;
}
body.login-showcase .eye-lbl {
    font-size: 7.5px;
    font-weight: 500;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--pc-brand-accent);
    margin-bottom: 6px;
}
body.login-showcase .hl {
    font-family: var(--pc-font-serif);
    font-size: 15px;
    font-weight: 300;
    line-height: 1.35;
    color: #fff;
    letter-spacing: -0.2px;
    margin-bottom: 5px;
}
body.login-showcase .hl em {
    font-style: italic;
    color: var(--pc-brand-accent);
}
body.login-showcase .sub2 {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.65;
}

/* ── DASHBOARD HALF + DIVISOR DIAGONAL ── */
body.login-showcase .dash-half {
    flex: 1;
    position: relative;
    background: #EFF0EC;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 28px 20px 72px;   /* +left: separa el monitor de la foto/diagonal */
    clip-path: polygon(48px 0, 100% 0, 100% 100%, 0 100%);
    margin-left: -48px;
}
body.login-showcase .dash-half::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(36, 65, 81, 0.05) 0%, transparent 45%);
    pointer-events: none;
}
body.login-showcase .dash-half::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 48px;
    width: 2px;
    background: linear-gradient(to bottom,
        transparent 0%,
        rgba(227, 195, 162, 0.9) 10%,
        rgba(227, 195, 162, 0.9) 90%,
        transparent 100%);
    transform: skewX(-3deg);
    pointer-events: none;
    z-index: 5;
    box-shadow: 0 0 8px rgba(227, 195, 162, 0.4);
}
body.login-showcase .dash-label {
    font-size: 7px;
    color: rgba(36, 65, 81, 0.4);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 7px;
    align-self: flex-start;
    position: relative;
    z-index: 2;
    padding-left: 10px;
}

/* Monitor */
body.login-showcase .monitor-wrap {
    width: 100%;
    max-width: 560px;   /* tope para que el monitor no se deforme en pantallas anchas */
    position: relative;
    z-index: 2;
}
body.login-showcase .monitor-body {
    background: #2a3540;
    border-radius: 9px;
    border: 2px solid #3a4a56;
    padding: 5px;
    width: 100%;
    box-shadow: 0 18px 40px -10px rgba(36, 65, 81, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
body.login-showcase .screen-bezel {
    background: #111c23;
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.4);
}
body.login-showcase .mbar {
    background: #0d1620;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    gap: 3px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
body.login-showcase .mbar-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
}
body.login-showcase .url-pill {
    margin-left: 5px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    padding: 1px 6px;
    font-size: 7px;
    color: rgba(255, 255, 255, 0.18);
}
body.login-showcase .monitor-neck {
    width: 22px;
    height: 9px;
    background: linear-gradient(to bottom, #2a3540, #1e2d3a);
    margin: 0 auto;
}
body.login-showcase .monitor-base {
    width: 58px;
    height: 5px;
    background: #1e2d3a;
    border-radius: 0 0 4px 4px;
    margin: 0 auto;
    border-top: 1px solid #3a4a56;
}

/* Dashboard interior */
body.login-showcase .dash {
    background: #f8f4ef;
    padding: 8px 9px;
    position: relative;
    overflow: hidden;
}
body.login-showcase .dash-h {
    font-size: 8.5px;
    font-weight: 500;
    color: #1a2730;
    margin-bottom: 1px;
}
body.login-showcase .dash-sh {
    font-size: 6px;
    color: #7a9aaa;
    margin-bottom: 6px;
}
body.login-showcase .top4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    margin-bottom: 4px;
}
body.login-showcase .mc {
    background: #fff;
    border-radius: 4px;
    padding: 5px 6px;
    border: 0.5px solid rgba(0, 0, 0, 0.07);
    position: relative;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}
body.login-showcase .mc.lit {
    transform: scale(1.08);
    box-shadow: 0 3px 12px rgba(36, 65, 81, 0.25);
    border-color: var(--pc-brand-deep);
    z-index: 5;
}
body.login-showcase .mc-lbl {
    font-size: 5px;
    color: #7a9aaa;
    margin-bottom: 1px;
}
body.login-showcase .mc-val {
    font-family: var(--pc-font-serif);
    font-size: 13px;
    font-weight: 300;
    color: #1a2730;
    line-height: 1;
}
body.login-showcase .mc-val.grn {
    color: #2a8a58;
}
body.login-showcase .mc-sub {
    font-size: 4.5px;
    color: #9ab0bc;
    margin-top: 1px;
}
body.login-showcase .ok-b {
    position: absolute;
    top: 3px;
    right: 3px;
    font-size: 4.5px;
    color: #2a8a58;
    background: rgba(42, 138, 88, 0.1);
    border-radius: 2px;
    padding: 1px 2px;
    font-weight: 500;
}
body.login-showcase .ratio-row {
    background: #fff;
    border-radius: 4px;
    padding: 4px 6px;
    margin-bottom: 4px;
    border: 0.5px solid rgba(0, 0, 0, 0.07);
    display: flex;
    align-items: center;
    gap: 5px;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}
body.login-showcase .ratio-row.lit {
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(36, 65, 81, 0.15);
    border-color: var(--pc-brand-deep);
}
body.login-showcase .rl {
    font-size: 4.5px;
    color: #7a9aaa;
    flex-shrink: 0;
}
body.login-showcase .rn {
    font-family: var(--pc-font-serif);
    font-size: 9px;
    font-weight: 300;
    color: #1a2730;
}
body.login-showcase .rn.g {
    color: #2a8a58;
}
body.login-showcase .ra {
    font-size: 6px;
    color: #aabbc8;
}
body.login-showcase .rres {
    font-size: 8px;
    font-weight: 500;
    color: #c87830;
}
body.login-showcase .mid6 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    margin-bottom: 4px;
}
body.login-showcase .mc2 {
    background: #fff;
    border-radius: 4px;
    padding: 5px 6px;
    border: 0.5px solid rgba(0, 0, 0, 0.07);
    position: relative;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}
body.login-showcase .mc2.wide {
    grid-column: span 2;
}
body.login-showcase .mc2.red-b {
    border-color: rgba(200, 60, 40, 0.2);
}
body.login-showcase .mc2.lit {
    transform: scale(1.05);
    box-shadow: 0 3px 10px rgba(36, 65, 81, 0.2);
    border-color: var(--pc-brand-deep);
    z-index: 5;
}
body.login-showcase .ab {
    position: absolute;
    top: 3px;
    right: 3px;
    font-size: 4.5px;
    color: #cc3020;
    background: rgba(200, 60, 40, 0.1);
    border-radius: 2px;
    padding: 1px 2px;
    font-weight: 500;
}
body.login-showcase .mc2-lbl {
    font-size: 5px;
    color: #7a9aaa;
    margin-bottom: 1px;
}
body.login-showcase .mc2-val {
    font-family: var(--pc-font-serif);
    font-size: 13px;
    font-weight: 300;
    color: #1a2730;
    line-height: 1;
}
body.login-showcase .mc2-val.red {
    color: #cc3020;
}
body.login-showcase .mc2-val.grn {
    color: #2a8a58;
}
body.login-showcase .mc2-sub {
    font-size: 4.5px;
    color: #9ab0bc;
    margin-top: 1px;
}
body.login-showcase .bot2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}
body.login-showcase .cp,
body.login-showcase .mp {
    background: #fff;
    border-radius: 4px;
    padding: 5px 6px;
    border: 0.5px solid rgba(0, 0, 0, 0.07);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}
body.login-showcase .cp.lit,
body.login-showcase .mp.lit {
    transform: scale(1.02);
    box-shadow: 0 3px 10px rgba(36, 65, 81, 0.2);
    border-color: var(--pc-brand-deep);
}
body.login-showcase .cp-t,
body.login-showcase .mp-t {
    font-size: 6px;
    font-weight: 500;
    color: #1a2730;
    margin-bottom: 1px;
}
body.login-showcase .cp-s,
body.login-showcase .mp-s {
    font-size: 4.5px;
    color: #7a9aaa;
    margin-bottom: 3px;
}
body.login-showcase .chart-area {
    height: 24px;
    border-bottom: 0.5px solid #e8e0d8;
    margin-bottom: 2px;
}
body.login-showcase .cl {
    fill: none;
    stroke: #3a9e6a;
    stroke-width: 1.2;
}
body.login-showcase .cx {
    display: flex;
    justify-content: space-between;
}
body.login-showcase .cx span {
    font-size: 3.5px;
    color: #aabbc8;
}
body.login-showcase .mleg {
    display: flex;
    gap: 4px;
    margin-bottom: 3px;
}
body.login-showcase .leg {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 4.5px;
    color: #7a9aaa;
}
body.login-showcase .ld {
    width: 6px;
    height: 4px;
    border-radius: 1px;
}
body.login-showcase .br {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-bottom: 2px;
}
body.login-showcase .bl {
    font-size: 4.5px;
    color: #7a9aaa;
    width: 28px;
    flex-shrink: 0;
}
body.login-showcase .bt {
    flex: 1;
    height: 5px;
    background: #f0eae3;
    border-radius: 1px;
    overflow: hidden;
    display: flex;
}
body.login-showcase .sg {
    height: 100%;
}
body.login-showcase .sg.a { background: var(--pc-brand-accent); }
body.login-showcase .sg.n { background: #3a9e6a; }
body.login-showcase .sg.r { background: #c8c0b8; }

body.login-showcase .fl {
    position: absolute;
    background: var(--pc-brand-deep);
    color: #fff;
    font-size: 5.5px;
    font-weight: 500;
    padding: 2px 5px;
    border-radius: 5px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 30;
    transform: translateX(-50%);
}
body.login-showcase .tick {
    position: absolute;
    top: 2px;
    left: 4px;
    font-size: 5px;
    font-weight: 500;
    color: var(--pc-brand-accent);
    opacity: 0;
    transition: opacity 0.3s ease;
}
body.login-showcase .tick.show {
    opacity: 1;
}

/* ════════════════════════════════════════
   RESPONSIVE — colapsar a solo-form en móvil/tablet
   (regla dura del portal: usable a 344px / 412px)
════════════════════════════════════════ */
@media (max-width: 900px) {
    body.login-showcase .wrap {
        flex-direction: column;
        min-height: 100vh;
    }
    body.login-showcase .left {
        width: 100%;
        min-height: 100vh;
        padding: 32px 24px 24px;
    }
    /* El showcase (foto + monitor + diagonal) es desktop-only */
    body.login-showcase .right {
        display: none;
    }
}
