/* /Components/Layout/BrandMark.razor.rz.scp.css */
/* Estilos del lockup de marca. Todo el color sale de las variables que
   genera PetPassTheme.cs — ni un hex aqui. El texto usa currentColor para
   adaptarse solo a su contenedor (oscuro en /login, claro sobre el appbar). */

.pp-brand[b-5zmk5edrpu] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.pp-brand__mark[b-5zmk5edrpu] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    /* Primary y no el verde del chrome: un badge pequeño con el verde oscuro
       del appbar se vuelve invisible sobre el fondo del tema oscuro
       (verificado en navegador). Primary contrasta en ambos temas. */
    background-color: var(--mud-palette-primary);
    color: var(--mud-palette-primary-text);
    flex-shrink: 0;
}

.pp-brand__wordmark[b-5zmk5edrpu] {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: currentColor;
}

.pp-brand__scope[b-5zmk5edrpu] {
    padding: 2px 8px;
    border: 1px solid currentColor;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 500;
    line-height: 1.4;
    /* Mismo color del texto contenedor, atenuado: mantiene el contraste
       correcto tanto sobre el appbar oscuro como sobre el fondo claro. */
    opacity: 0.65;
}
/* /Components/Layout/LoginLayout.razor.rz.scp.css */
/* Shell de las pantallas sin sesion (/login). No lleva MudDrawer ni NavMenu:
   solo posiciona el toggle de tema sobre el contenido, que se centra solo. */

.pp-login-shell[b-nmc36ds4li] {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    background-color: var(--mud-palette-background);
}

.pp-login-theme-toggle[b-nmc36ds4li] {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
}
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-ql8zu99fxs],
.components-reconnect-repeated-attempt-visible[b-ql8zu99fxs],
.components-reconnect-failed-visible[b-ql8zu99fxs],
.components-pause-visible[b-ql8zu99fxs],
.components-resume-failed-visible[b-ql8zu99fxs],
.components-rejoining-animation[b-ql8zu99fxs] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-ql8zu99fxs],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-ql8zu99fxs],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-ql8zu99fxs],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-ql8zu99fxs],
#components-reconnect-modal.components-reconnect-retrying[b-ql8zu99fxs],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-ql8zu99fxs],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-ql8zu99fxs],
#components-reconnect-modal.components-reconnect-failed[b-ql8zu99fxs],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-ql8zu99fxs] {
    display: block;
}


#components-reconnect-modal[b-ql8zu99fxs] {
    /* Superficie y texto del tema: sin esto el modal quedaba blanco fijo y
       se veia roto en tema oscuro. */
    background-color: var(--mud-palette-surface);
    color: var(--mud-palette-text-primary);
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 0;
    border-radius: 0.5rem;
    /* Sombra derivada del tema en AMBOS operandos: mezclar contra un color
       fijo rompe igual en el tema contrario. */
    box-shadow: 0 3px 6px 2px color-mix(in srgb, var(--mud-palette-text-primary) 30%, transparent);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-ql8zu99fxs 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-ql8zu99fxs 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-ql8zu99fxs 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-ql8zu99fxs]::backdrop {
    /* Idem: el velo sale del tema, no de un negro literal. */
    background-color: color-mix(in srgb, var(--mud-palette-text-primary) 40%, transparent);
    animation: components-reconnect-modal-fadeInOpacity-b-ql8zu99fxs 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-ql8zu99fxs {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-ql8zu99fxs {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-ql8zu99fxs {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-ql8zu99fxs] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-ql8zu99fxs] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-ql8zu99fxs] {
    border: 0;
    background-color: var(--mud-palette-primary);
    color: var(--mud-palette-primary-text);
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-ql8zu99fxs] {
        background-color: var(--mud-palette-primary-darken);
    }

    #components-reconnect-modal button:active[b-ql8zu99fxs] {
        background-color: var(--mud-palette-primary);
    }

.components-rejoining-animation[b-ql8zu99fxs] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-ql8zu99fxs] {
        position: absolute;
        border: 3px solid var(--mud-palette-primary);
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-ql8zu99fxs 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-ql8zu99fxs] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-ql8zu99fxs {
    0% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}
/* /Components/Pages/Login.razor.rz.scp.css */
/* Login del panel de partners.
   Registro "product": la pantalla debe desaparecer en la tarea. Sin card,
   sin gradientes decorativos, sin hero. Todo el color sale del MudTheme
   (var(--mud-palette-*)) — ningun hex hardcodeado aqui. */

.pp-login[b-wafcwhjiuk] {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    background-color: var(--mud-palette-background);
}

.pp-login__column[b-wafcwhjiuk] {
    width: 100%;
    max-width: 360px;
    animation: pp-login-enter-b-wafcwhjiuk 260ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* El lockup de marca vive en BrandMark.razor (compartido con el appbar del
   panel). Aqui solo se posiciona. */
.pp-login__header[b-wafcwhjiuk] {
    margin-bottom: 40px;
    color: var(--mud-palette-text-primary);
}

.pp-login__title[b-wafcwhjiuk] {
    margin: 0 0 6px;
    font-family: 'Bricolage Grotesque', var(--mud-typography-default-family);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--mud-palette-text-primary);
    text-wrap: balance;
}

.pp-login__subtitle[b-wafcwhjiuk] {
    margin: 0 0 28px;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--mud-palette-text-secondary);
}

.pp-login__form[b-wafcwhjiuk]  .pp-login__field {
    margin-top: 12px;
}

/* El boton se superpone al borde derecho del campo, igual que se veia el
   adornment, pero es un boton real del flujo de tabulacion. */
.pp-login__password[b-wafcwhjiuk] {
    position: relative;
}

.pp-login__form[b-wafcwhjiuk]  .pp-login__password-toggle {
    position: absolute;
    right: 4px;
    /* 12px del margin-top del campo + centrado sobre los 40px de alto denso. */
    top: 18px;
}
.pp-login__form[b-wafcwhjiuk]  .pp-login__submit {
    margin-top: 20px;
    height: 44px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

.pp-login__foot[b-wafcwhjiuk] {
    margin: 28px 0 0;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--mud-palette-text-secondary);
}

.pp-login__foot a[b-wafcwhjiuk] {
    color: var(--mud-palette-primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 150ms ease-out;
}

.pp-login__foot a:hover[b-wafcwhjiuk],
.pp-login__foot a:focus-visible[b-wafcwhjiuk] {
    border-bottom-color: currentColor;
}

@keyframes pp-login-enter-b-wafcwhjiuk {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* Viewport movil: menos padding vertical, la columna ocupa el ancho util. */
@media (max-width: 600px) {
    .pp-login[b-wafcwhjiuk] {
        align-items: flex-start;
        padding: 72px 20px 32px;
    }

    .pp-login__header[b-wafcwhjiuk] {
        margin-bottom: 32px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pp-login__column[b-wafcwhjiuk] {
        animation: none;
    }

    .pp-login__foot a[b-wafcwhjiuk] {
        transition: none;
    }
}
