/* Páginas de login / registro (Elementor, page-id 770 y 729)
   Antes: sección con la foto de fondo mucho más alta que la pantalla,
   dejando un montón de espacio vacío debajo de la tarjeta en desktop.
   Acá se fuerza la sección a ocupar exactamente el alto de pantalla y
   se centra el contenido, sin tocar el layout/JSON de Elementor. */

body.page-id-770 .elementor-top-section,
body.page-id-729 .elementor-top-section {
    min-height: 100vh !important;
    height: 100vh !important;
    max-height: 100vh;
    display: flex !important;
    align-items: center;
    overflow: hidden;
    position: relative;
}

/* Velo oscuro suave sobre la foto para que el título en blanco y la
   tarjeta se lean bien pase lo que pase con la imagen de fondo. */
body.page-id-770 .elementor-top-section::before,
body.page-id-729 .elementor-top-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.15) 35%, rgba(0,0,0,.45) 100%);
    pointer-events: none;
}

body.page-id-770 .elementor-top-section > .elementor-container,
body.page-id-729 .elementor-top-section > .elementor-container {
    position: relative;
    z-index: 1;
    width: 100%;
}

/* Tarjeta "vidrio esmerilado" (glassmorphism) — translúcida sobre la foto,
   con blur y borde fino, al estilo de la referencia que pasó German. */
body.page-id-770 form,
body.page-id-729 form {
    background: rgba(255, 255, 255, 0.14) !important;
    border: 1px solid rgba(255, 255, 255, 0.35);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border-radius: 24px !important;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
    padding: 36px 32px !important;
}

/* Título por sobre la foto: sombra de texto para que no se pierda contra
   fondos claros de la imagen */
body.page-id-770 .elementor-heading-title,
body.page-id-729 .elementor-heading-title {
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

/* ── Campos: pastilla translúcida + icono, como la referencia ──────── */
body.page-id-770 form .woocommerce-form-row,
body.page-id-729 form .woocommerce-form-row {
    position: relative;
    margin-bottom: 18px !important;
}

/* La etiqueta se oculta visualmente (sigue accesible para lectores de
   pantalla) y su texto se copia al placeholder por JS, como en la
   referencia — ahí el nombre del campo va DENTRO de la pastilla. */
body.page-id-770 form .woocommerce-form-row label,
body.page-id-729 form .woocommerce-form-row label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body.page-id-770 form input[type="text"],
body.page-id-770 form input[type="email"],
body.page-id-770 form input[type="password"],
body.page-id-729 form input[type="text"],
body.page-id-729 form input[type="email"],
body.page-id-729 form input[type="password"] {
    width: 100%;
    height: 52px;
    background: rgba(255, 255, 255, 0.14) !important;
    border: 1px solid rgba(255, 255, 255, 0.45) !important;
    border-radius: 999px !important;
    color: #fff !important;
    padding: 0 46px 0 22px !important;
    font-size: 15px;
    box-shadow: none !important;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}
body.page-id-770 form input[type="text"]::placeholder,
body.page-id-770 form input[type="email"]::placeholder,
body.page-id-770 form input[type="password"]::placeholder,
body.page-id-729 form input[type="text"]::placeholder,
body.page-id-729 form input[type="email"]::placeholder,
body.page-id-729 form input[type="password"]::placeholder {
    color: rgba(255, 255, 255, 0.75);
}
body.page-id-770 form input[type="text"]:focus,
body.page-id-770 form input[type="email"]:focus,
body.page-id-770 form input[type="password"]:focus,
body.page-id-729 form input[type="text"]:focus,
body.page-id-729 form input[type="email"]:focus,
body.page-id-729 form input[type="password"]:focus {
    background: rgba(255, 255, 255, 0.22) !important;
    border-color: rgba(255, 255, 255, 0.8) !important;
    outline: none;
}

/* Iconos a la derecha de cada pastilla (usuario, candado, sobre) */
body.page-id-770 form .woocommerce-form-row::after,
body.page-id-729 form .woocommerce-form-row::after {
    content: "";
    position: absolute;
    right: 20px;
    /* Centrado relativo al input (26px = mitad de los 52px de alto que le
       dimos), no un valor fijo — así no se desalinea si cambia el padding. */
    top: 26px;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background-color: rgba(255, 255, 255, 0.85);
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
    pointer-events: none;
}
body.page-id-770 form .woocommerce-form-row:has(#username)::after,
body.page-id-729 form .woocommerce-form-row:has(#reg_email)::after {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4.4 3.6-8 8-8s8 3.6 8 8'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4.4 3.6-8 8-8s8 3.6 8 8'/%3E%3C/svg%3E");
}
body.page-id-729 form .woocommerce-form-row:has(#reg_email)::after {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E");
}
body.page-id-770 form .woocommerce-form-row:has(#password)::after {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E");
}

/* Checkbox "recuérdame" y el link de contraseña, en blanco chico */
body.page-id-770 form .woocommerce-form-login__rememberme span,
body.page-id-770 form .woocommerce-LostPassword a,
body.page-id-729 form .woocommerce-privacy-policy-text,
body.page-id-729 form .woocommerce-privacy-policy-text a {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 13px;
}
body.page-id-770 form .woocommerce-LostPassword a:hover {
    color: #fff !important;
}
body.page-id-770 form input[type="checkbox"] {
    accent-color: #bdcd00;
}

/* Botón: pastilla completa, igual que la referencia.
   overflow:hidden de más, por las dudas — en el botón de "Registrarse"
   aparecía un cuadradito blanco pegado al borde derecho que no viene de
   ningún elemento propio del formulario (parece un artefacto del navegador);
   con overflow:hidden queda recortado pase lo que pase. */
body.page-id-770 form button[type="submit"],
body.page-id-729 form button[type="submit"] {
    width: 100%;
    height: 52px;
    border-radius: 999px !important;
    background: #bdcd00 !important;
    color: #111 !important;
    font-weight: 700 !important;
    border: none !important;
    box-shadow: none !important;
    margin-top: 4px;
    position: relative;
    overflow: hidden;
    appearance: none;
    -webkit-appearance: none;
}
body.page-id-770 form button[type="submit"]:hover,
body.page-id-729 form button[type="submit"]:hover {
    background: #a8b800 !important;
}

/* Texto suelto del formulario (ej. "Se enviará una contraseña a su correo")
   sin clase propia — hereda el color oscuro por defecto de WooCommerce,
   ilegible sobre la foto. Todo el texto plano del formulario pasa a claro. */
body.page-id-770 form p,
body.page-id-729 form p {
    color: rgba(255, 255, 255, 0.85);
}

/* Avisos de error/éxito de WooCommerce (ej. "correo inválido", "ya existe
   una cuenta con ese correo") — versión clara y con la marca, en vez del
   morado/rojo genérico de WooCommerce. El contenedor que WooCommerce arma
   alrededor (.woocommerce-notices-wrapper) es un hermano del <form>, no un
   hijo, así que hay que centrarlo con su propio flex — un margin:auto en
   el aviso no alcanza porque ese contenedor no es de ancho acotado. */
body.page-id-770 .woocommerce-notices-wrapper,
body.page-id-729 .woocommerce-notices-wrapper {
    display: flex;
    justify-content: center;
    padding: 0 20px;
    margin-bottom: 16px;
}
body.page-id-770 .woocommerce-error,
body.page-id-770 .woocommerce-message,
body.page-id-770 .woocommerce-info,
body.page-id-729 .woocommerce-error,
body.page-id-729 .woocommerce-message,
body.page-id-729 .woocommerce-info {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #222 !important;
    border-radius: 14px !important;
    border: none !important;
    border-top: none !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    /* Padding parejo: se saca el ícono con tipografía propia de WooCommerce
       de abajo (content:none) así no hace falta reservarle espacio y no
       vuelve a solaparse con el texto. */
    padding: 16px 20px !important;
    margin: 0 !important;
    max-width: 420px;
    width: 100%;
    list-style: none !important;
}
body.page-id-770 .woocommerce-error::before,
body.page-id-770 .woocommerce-message::before,
body.page-id-770 .woocommerce-info::before,
body.page-id-729 .woocommerce-error::before,
body.page-id-729 .woocommerce-message::before,
body.page-id-729 .woocommerce-info::before {
    content: none !important;
}
body.page-id-770 .woocommerce-error li,
body.page-id-729 .woocommerce-error li {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 0 !important;
}

/* Link "Regístrate" bajo la tarjeta, más integrado al estilo vidrio */
body.page-id-770 .elementor-widget-button .elementor-button {
    background: rgba(255, 255, 255, 0.14) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: 999px !important;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}
body.page-id-770 .elementor-widget-button .elementor-button:hover {
    background: rgba(255, 255, 255, 0.28) !important;
}

@media (max-width: 767px) {
    body.page-id-770 .elementor-top-section,
    body.page-id-729 .elementor-top-section {
        height: auto !important;
        min-height: 100vh !important;
        display: block !important;
        padding-top: 8vh;
    }
}
