/* =====================================================================
   Login (Web) - rediseño 27-nov-2026
   Hoja propia de Login.aspx. La hoja vieja (login_stylesheet_2025_07_02_03_99.css)
   la siguen usando ResetPassword, BetaAccess, AutoClosePage y NewLogin: no borrarla.
   Reglas del design system: glass translúcido, bordes vía rgba, nunca blanco puro,
   dark = gold + púrpura, inputs >= 16px.
   ===================================================================== */

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    background: #141314;
}

body {
    font-family: 'Montserrat', -apple-system, 'Segoe UI', Roboto, sans-serif;
    color: #e5e5e5;
    -webkit-font-smoothing: antialiased;
}

*:focus {
    outline: none;
}

/* ---------- Estructura ---------- */

.lg-shell {
    display: flex;
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
}

.lg-hero {
    position: relative;
    flex: 1 1 58%;
    background: #0c0c0c;
    overflow: hidden;
    display: none;
}

.lg-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lg-hero-shade {
    position: absolute;
    inset: 0;
    /* Sombra con degradado al pie de la foto: la mitad superior queda limpia y la inferior
       se oscurece de forma progresiva para que el texto y el crédito se lean sobre cualquier foto. */
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0) 22%, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.45) 66%, rgba(0, 0, 0, 0.80) 84%, rgba(0, 0, 0, 0.94) 100%);
}

.lg-hero-copy {
    position: absolute;
    left: 56px;
    right: 56px;
    bottom: 48px;
}

.lg-hero-title {
    font-size: 36px;
    line-height: 1.12;
    font-weight: 900;
    color: #e5e5e5;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

.lg-hero-subtitle {
    font-size: 31px;
    line-height: 1.15;
    font-weight: 900;
    font-style: italic;
    color: #e5e5e5;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

.lg-hero-hashtag {
    margin-top: 12px;
    font-size: 22px;
    font-weight: 500;
    color: #e4b809;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.lg-hero-credit {
    margin-top: 22px;
    font-size: 13px;
    color: rgba(229, 229, 229, 0.72);
}

    .lg-hero-credit b {
        font-weight: 600;
        color: rgba(229, 229, 229, 0.9);
    }

.lg-hero-credit-desc {
    margin-top: 3px;
    font-size: 12px;
    color: rgba(229, 229, 229, 0.6);
}

.lg-panel {
    position: relative;
    flex: 1 1 42%;
    min-width: 0;
    display: flex;
    background:
        radial-gradient(520px 380px at 85% 8%, rgba(228, 184, 9, 0.13), transparent 70%),
        radial-gradient(460px 360px at 10% 95%, rgba(167, 139, 250, 0.10), transparent 70%),
        #1b1a1b;
}

.lg-form {
    width: 100%;
    max-width: 440px;
    margin: auto;
    padding: 32px 20px;
    animation: lgEnter 380ms ease-out both;
}

@keyframes lgEnter {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.lg-logo {
    text-align: center;
    margin-bottom: 18px;
}

    .lg-logo img {
        width: 196px;
        height: 77px;
        object-fit: cover;
    }

/* ---------- Tarjeta glass ---------- */

.lg-card {
    background: rgba(255, 255, 255, 0.055);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(228, 184, 9, 0.28);
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

/* ---------- Pestañas ---------- */

.lg-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    padding: 4px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 16px;
}

.lg-tab {
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    color: #a3a3a3;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 9px;
    padding: 10px 6px;
    cursor: pointer;
    transition: background-color 200ms ease-out, color 200ms ease-out;
}

    .lg-tab:hover {
        color: #e5e5e5;
    }

    .lg-tab.is-active {
        color: #e4b809;
        font-weight: 600;
        background: rgba(228, 184, 9, 0.15);
        border-color: rgba(228, 184, 9, 0.35);
        cursor: default;
    }

    .lg-tab:focus-visible, .lg-cta:focus-visible, .lg-link:focus-visible, .lg-eye:focus-visible {
        box-shadow: 0 0 0 2px rgba(228, 184, 9, 0.55);
    }

/* ---------- Botones sociales ---------- */

.lg-social {
    display: grid;
    gap: 10px;
}

.lg-social-btn {
    display: flex;
    justify-content: center;
    /* 40px exactos = alto real del botón de Google. Con más alto, el recorte de
       abajo no toca el botón y se ve su radio nativo (4px) distinto al de arriba. */
    height: 40px;
    overflow: hidden;
    border-radius: 8px;
}

    .lg-social-btn > div {
        width: 100%;
    }

#appleid-signin {
    height: 40px;
    cursor: pointer;
}

.lg-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    font-size: 12px;
    color: #8a8a8a;
}

    .lg-divider::before, .lg-divider::after {
        content: "";
        flex: 1;
        height: 1px;
        background: rgba(255, 255, 255, 0.08);
    }

/* ---------- Campos ---------- */

.lg-view[hidden] {
    display: none;
}

.lg-view {
    animation: lgFade 300ms ease-out both;
}

@keyframes lgFade {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.lg-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.lg-label {
    display: block;
    font-size: 12.5px;
    font-weight: 500;
    color: #b0b0b0;
    margin: 12px 0 6px 2px;
    text-align: left;
}

.lg-field {
    position: relative;
    display: block;
}

    .lg-field + .lg-field {
        margin-top: 10px;
    }

.lg-ico {
    position: absolute;
    left: 14px;
    top: 50%;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    color: #8a8a8a;
    pointer-events: none;
}

.lg-input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    font-family: inherit;
    font-size: 16px;
    color: #e5e5e5;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 11px;
    transition: border-color 200ms ease-out, background-color 200ms ease-out;
    -webkit-appearance: none;
    appearance: none;
}

    .lg-input::placeholder {
        color: #7d7d7d;
    }

    .lg-input:hover {
        border-color: rgba(255, 255, 255, 0.2);
    }

    .lg-input:focus {
        border-color: rgba(228, 184, 9, 0.55);
        background: rgba(255, 255, 255, 0.07);
    }

    .lg-input:-webkit-autofill,
    .lg-input:-webkit-autofill:focus {
        -webkit-text-fill-color: #e5e5e5;
        -webkit-box-shadow: 0 0 0 1000px #262526 inset;
        caret-color: #e5e5e5;
    }

.lg-field.has-ico .lg-input {
    padding-left: 42px;
}

.lg-field.has-eye .lg-input {
    padding-right: 46px;
}

.lg-eye {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8a8a8a;
    background: transparent;
    border: none;
    border-radius: 9px;
    cursor: pointer;
}

    .lg-eye:hover {
        color: #e5e5e5;
    }

    .lg-eye svg {
        width: 19px;
        height: 19px;
    }

    .lg-eye .lg-eye-off, .lg-eye.is-on .lg-eye-on {
        display: none;
    }

    .lg-eye.is-on .lg-eye-off {
        display: block;
    }

/* ---------- Mensajes de error ---------- */

.lg-error {
    display: none;
    margin: 0 0 12px;
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1.4;
    text-align: left;
    color: #fca5a5;
    background: rgba(248, 113, 113, 0.12);
    border: 1px solid rgba(248, 113, 113, 0.4);
    border-radius: 10px;
}

    .lg-error.is-inline {
        margin: 8px 0 0;
    }

/* ---------- Requisitos de contraseña ---------- */

.lg-rules {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin: 9px 2px 0;
    padding: 0;
    list-style: none;
    font-size: 12px;
    color: #8a8a8a;
}

    .lg-rules li {
        display: flex;
        align-items: center;
        gap: 5px;
        transition: color 200ms ease-out;
    }

        .lg-rules li::before {
            content: "";
            width: 7px;
            height: 7px;
            border-radius: 50%;
            border: 1px solid currentColor;
        }

        .lg-rules li.is-ok {
            color: #4ade80;
        }

            .lg-rules li.is-ok::before {
                background: currentColor;
            }

/* ---------- Checks ---------- */

.lg-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 12px;
    font-size: 12.5px;
    line-height: 1.5;
    color: #b0b0b0;
    text-align: left;
    cursor: pointer;
}

    .lg-check input[type=checkbox] {
        flex: 0 0 auto;
        width: 18px;
        height: 18px;
        margin: 1px 0 0;
        -webkit-appearance: none;
        appearance: none;
        background: rgba(255, 255, 255, 0.05) center / 12px 12px no-repeat;
        border: 1px solid rgba(255, 255, 255, 0.28);
        border-radius: 5px;
        cursor: pointer;
        transition: background-color 150ms ease-out, border-color 150ms ease-out;
    }

        .lg-check input[type=checkbox]:checked {
            background-color: #e4b809;
            border-color: rgba(228, 184, 9, 0.5);
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1500' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E");
        }

        .lg-check input[type=checkbox]:focus-visible {
            box-shadow: 0 0 0 2px rgba(228, 184, 9, 0.55);
        }

    .lg-check a {
        color: #e4b809;
        text-decoration: none;
    }

        .lg-check a:hover {
            text-decoration: underline;
        }

/* ---------- Botones ---------- */

.lg-cta, .lg-card input[type=submit].lg-cta {
    display: block;
    width: 100%;
    height: 48px;
    margin: 16px 0 0;
    padding: 0 16px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    color: #1a1500;
    background: #e4b809;
    border: none;
    border-radius: 11px;
    cursor: pointer;
    transition: background-color 200ms ease-out, transform 120ms ease-out;
    -webkit-appearance: none;
    appearance: none;
}

    .lg-cta:hover {
        background: #f0c61f;
    }

    .lg-cta:active {
        transform: scale(0.98);
    }

.lg-link {
    font-family: inherit;
    font-size: 13px;
    color: #b8b8b8;
    background: none;
    border: none;
    border-radius: 6px;
    padding: 4px 2px;
    cursor: pointer;
}

    .lg-link:hover {
        color: #e4b809;
    }

.lg-aux {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

    .lg-aux.is-center {
        justify-content: center;
        margin-top: 12px;
    }

.lg-hint {
    margin: 0 0 4px;
    font-size: 13px;
    line-height: 1.5;
    color: #a3a3a3;
    text-align: left;
}

/* ---------- Mensaje de resultado ---------- */

.lg-result {
    text-align: center;
    padding: 8px 0 2px;
}

.lg-result-ico {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #4ade80;
    background: rgba(74, 222, 128, 0.12);
    border: 1px solid rgba(74, 222, 128, 0.4);
}

    .lg-result-ico svg {
        width: 30px;
        height: 30px;
    }

    .lg-result-ico .lg-ico-error, .lg-result-ico.is-error .lg-ico-ok {
        display: none;
    }

    .lg-result-ico.is-error {
        color: #f87171;
        background: rgba(248, 113, 113, 0.12);
        border-color: rgba(248, 113, 113, 0.4);
    }

        .lg-result-ico.is-error .lg-ico-error {
            display: block;
        }

.lg-result-msg {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    color: #d4d4d4;
}

/* ---------- Cargando ---------- */

.loading-div {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: none;
    justify-content: center;
    align-items: center;
    background: rgba(12, 12, 12, 0.6);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.loader {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 4px solid rgba(228, 184, 9, 0.2);
    border-top-color: #e4b809;
    animation: lgSpin 0.9s linear infinite;
}

@keyframes lgSpin {
    to {
        transform: rotate(360deg);
    }
}

/* ---------- Toast (errores de Apple / Google) ---------- */

.lg-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    z-index: 2000;
    max-width: calc(100% - 32px);
    padding: 12px 16px;
    font-size: 14px;
    line-height: 1.4;
    color: #e5e5e5;
    background: rgba(248, 113, 113, 0.16);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(248, 113, 113, 0.45);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    opacity: 0;
    transform: translate(-50%, -12px);
    transition: opacity 300ms ease-out, transform 300ms ease-out;
    pointer-events: none;
}

    .lg-toast.is-success {
        background: rgba(74, 222, 128, 0.14);
        border-color: rgba(74, 222, 128, 0.45);
    }

    .lg-toast.is-visible {
        opacity: 1;
        transform: translate(-50%, 0);
    }

/* ---------- Escritorio ---------- */

@media (min-width: 992px) {
    /* Sticky: la foto se queda fija aunque el formulario de registro haga scroll. */
    .lg-hero {
        display: block;
        position: sticky;
        top: 0;
        height: 100vh;
        align-self: flex-start;
    }

    .lg-panel {
        flex: 0 0 42%;
        max-width: 620px;
        border-left: 1px solid rgba(255, 255, 255, 0.06);
    }
}

@media (min-width: 1400px) {
    .lg-hero-title {
        font-size: 42px;
    }

    .lg-hero-subtitle {
        font-size: 36px;
    }
}

@media (max-width: 420px) {
    .lg-card {
        padding: 18px 16px;
    }

    .lg-form {
        padding: 24px 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lg-form, .lg-view {
        animation: none;
    }
}

/* =====================================================================
   Aviso de la app (modal + banner) - solo navegador móvil
   ===================================================================== */

.app-install-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    align-items: flex-end;
    justify-content: center;
}

    .app-install-modal-overlay.visible {
        display: flex;
    }

.app-install-modal {
    position: relative;
    background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
    border-radius: 20px 20px 0 0;
    padding: 20px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    width: 100%;
    animation: slideUpModal 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}

@keyframes slideUpModal {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.app-install-modal-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.app-install-modal-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    object-fit: cover;
}

.app-install-modal-info h3 {
    font-size: 18px;
    font-weight: 700;
    color: #e5e5e5;
    margin: 0 0 4px 0;
}

.app-install-modal-info p {
    font-size: 13px;
    color: #888;
    margin: 0;
}

.app-install-modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.app-install-modal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 14px 20px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: transform 0.2s, opacity 0.2s;
}

    .app-install-modal-btn:active {
        transform: scale(0.98);
        opacity: 0.9;
    }

    .app-install-modal-btn.primary {
        background: linear-gradient(135deg, #c9a227 0%, #d4af37 100%);
        color: #000;
    }

    .app-install-modal-btn.secondary {
        background: rgba(255, 255, 255, 0.1);
        color: #e5e5e5;
    }

    .app-install-modal-btn svg {
        width: 18px;
        height: 18px;
    }

.app-install-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #888;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

    .app-install-modal-close svg, .app-install-banner-close svg {
        width: 16px;
        height: 16px;
    }

.app-install-banner {
    display: none;
    position: fixed;
    top: env(safe-area-inset-top, 0px);
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 15px;
    z-index: 9997;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

    .app-install-banner.visible {
        display: flex;
        transform: translateY(0);
        opacity: 1;
    }

.app-install-banner-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.app-install-banner-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
}

.app-install-banner-text {
    display: flex;
    flex-direction: column;
}

    .app-install-banner-text strong {
        font-size: 13px;
        font-weight: 600;
        color: #e5e5e5;
    }

    .app-install-banner-text span {
        font-size: 11px;
        color: #888;
    }

.app-install-banner-btn {
    background: linear-gradient(135deg, #c9a227 0%, #d4af37 100%);
    color: #000;
    padding: 8px 16px;
    border-radius: 20px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.app-install-banner-close {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 5px;
    margin-left: 5px;
    display: flex;
}
