/* ═══════════════════════════════════════════
   DELLANONNA LOGIN POPUP — popup.css v1.0.0
═══════════════════════════════════════════ */

/* Overlay */
#dlp-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.65);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    transition: opacity .25s ease;
}
#dlp-overlay.dlp-hidden {
    display: none !important;
}

/* Modal */
#dlp-modal {
    position: relative;
    display: flex;
    width: 100%;
    max-width: 780px;
    min-height: 560px;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.35);
    animation: dlp-fadein .22s ease;
}
@keyframes dlp-fadein {
    from { opacity:0; transform: translateY(-12px); }
    to   { opacity:1; transform: translateY(0); }
}

/* Botón cerrar */
#dlp-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #555;
    z-index: 10;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 50%;
    transition: background .15s;
}
#dlp-close:hover { background: #f0f0f0; }

/* ── Sidebar imagen ── */
#dlp-sidebar {
    width: 40%;
    flex-shrink: 0;
    background: #1a1a1a center/cover no-repeat;
    /* La imagen de fondo se inyecta via inline style desde PHP */
    position: relative;
}
/* Logo sobre la imagen */
#dlp-sidebar .custom-logo-link,
#dlp-sidebar img {
    display: none; /* ocultamos el logo de WP; la imagen de fondo hace el trabajo */
}

/* ── Contenido ── */
#dlp-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 40px 36px 36px;
    overflow-y: auto;
    box-sizing: border-box;
}

/* ── Tabs ── */
#dlp-tabs {
    display: flex;
    margin-bottom: 28px;
    border-bottom: 1px solid #e0e0e0;
}
.dlp-tab {
    flex: 1;
    padding: 12px 0;
    background: none;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    color: #888;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    transition: color .15s, border-color .15s;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.dlp-tab-active {
    color: #111;
    border-bottom-color: #111;
}

/* ── Mensajes ── */
#dlp-msg {
    padding: 10px 14px;
    border-radius: 3px;
    font-size: 13.5px;
    margin-bottom: 16px;
}
#dlp-msg.dlp-error   { background: #fef0f0; color: #c0392b; border: 1px solid #f5c6c6; }
#dlp-msg.dlp-success { background: #edfbf0; color: #1e7e34; border: 1px solid #b8dfc4; }
#dlp-msg.dlp-hidden  { display: none; }

/* ── Paneles ── */
.dlp-panel { display: flex; flex-direction: column; gap: 14px; }
.dlp-panel.dlp-hidden { display: none; }

/* ── Campos ── */
.dlp-field {
    position: relative;
    display: flex;
    align-items: center;
}
.dlp-field-icon input {
    width: 100%;
    padding: 13px 40px 13px 44px;
    border: 1px solid #d0d0d0;
    border-radius: 3px;
    font-size: 14px;
    color: #333;
    background: #fff;
    box-sizing: border-box;
    transition: border-color .15s;
    outline: none;
}
.dlp-field-icon input:focus { border-color: #111; }
.dlp-icon {
    position: absolute;
    left: 14px;
    font-size: 15px;
    pointer-events: none;
    color: #999;
}
.dlp-eye {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 15px;
    color: #999;
    padding: 0;
    line-height: 1;
}
.dlp-eye:hover { color: #333; }

/* ── Fila dos columnas ── */
.dlp-row-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* ── Recuérdame ── */
.dlp-row-remember {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: #555;
    gap: 8px;
}
.dlp-row-remember label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

/* ── Términos ── */
.dlp-terms {
    font-size: 12.5px;
    color: #555;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    line-height: 1.5;
}
.dlp-terms input { margin-top: 2px; flex-shrink: 0; }

/* ── Links ── */
.dlp-link {
    color: #111;
    text-decoration: underline;
    font-size: inherit;
}

/* ── Botón primario ── */
.dlp-btn-primary {
    width: 100%;
    padding: 14px;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .08em;
    cursor: pointer;
    transition: background .15s;
    margin-top: 4px;
}
.dlp-btn-primary:hover { background: #333; }
.dlp-btn-primary:disabled { background: #aaa; cursor: not-allowed; }

/* ── Separador ── */
.dlp-separator {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #bbb;
    font-size: 12px;
}
.dlp-separator::before,
.dlp-separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e0e0e0;
}

/* ── Botón Google ── */
.dlp-btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    background: #fff;
    border: 1.5px solid #d0d0d0;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s, border-color .15s;
    box-sizing: border-box;
}
.dlp-btn-google:hover {
    background: #f8f8f8;
    border-color: #aaa;
    color: #111;
    text-decoration: none;
}

/* ══════════════════════════════════════════
   MOBILE
══════════════════════════════════════════ */
@media (max-width: 600px) {
    #dlp-modal { flex-direction: column; min-height: unset; }
    #dlp-sidebar { width: 100%; height: 160px; }
    #dlp-content { padding: 24px 20px 28px; }
    .dlp-row-two { grid-template-columns: 1fr; }
}

/* ── Cursor pointer — elementos interactivos ── */
.dlp-tab,
.dlp-btn-primary,
.dlp-btn-google,
.dlp-eye,
#dlp-close,
.dlp-link,
.dlp-terms,
.dlp-terms input,
.dlp-row-remember label,
.dlp-row-remember input {
    cursor: pointer;
}

/* Menú header — logueado */
li.xoo-el-login-tgr a,
li.xoo-el-reg-tgr a {
    cursor: pointer !important;
}

/* ── Submenu usuario logueado ── */
li.dlp-has-submenu { position: relative; }
li.dlp-has-submenu ul.dlp-submenu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
    min-width: 160px;
    z-index: 99999;
    padding: 6px 0;
    margin: 0;
    list-style: none;
}
li.dlp-has-submenu:hover ul.dlp-submenu,
li.dlp-has-submenu:focus-within ul.dlp-submenu {
    display: block;
}
li.dlp-has-submenu ul.dlp-submenu li {
    margin: 0;
    padding: 0;
    list-style: none;
}
li.dlp-has-submenu ul.dlp-submenu li a {
    display: block;
    padding: 9px 16px;
    color: #333 !important;
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    background: transparent;
    transition: background .12s;
}
li.dlp-has-submenu ul.dlp-submenu li a:hover {
    background: #f5f5f5;
    color: #111 !important;
}
