/* /Components/Layout/LoginLayout.razor.rz.scp.css */
.login-shell[b-ecqavd2fnb] {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 20% 30%, rgba(58, 118, 167, 0.45) 0%, transparent 55%),
        radial-gradient(circle at 80% 70%, rgba(255, 87, 87, 0.18) 0%, transparent 50%),
        linear-gradient(135deg, #0f3252 0%, #1B456D 50%, #3A76A7 100%);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

/* Subtle pattern of brand circles in background */
.login-shell[b-ecqavd2fnb]::before,
.login-shell[b-ecqavd2fnb]::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.login-shell[b-ecqavd2fnb]::before {
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, transparent 70%);
    top: -120px;
    right: -120px;
}

.login-shell[b-ecqavd2fnb]::after {
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(202, 219, 235, 0.05) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
}
/* /Components/Layout/MainLayout.razor.rz.scp.css */
.app-shell[b-bphc9he9wz] {
    display: flex;
    min-height: 100vh;
}

.sidebar[b-bphc9he9wz] {
    width: 260px;
    background: var(--sidebar-bg);
    color: var(--sidebar-ink);
    transition: width 0.18s ease;
    padding: 1.5rem 0 1rem;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    /* dvh y no vh: en mobile, vh ignora la barra del navegador y el pie del
       menu queda debajo del borde de la pantalla. */
    height: 100dvh;
    /* Sin esto, en pantallas bajas el pie (usuario, cerrar sesion, botones de
       tema) se cortaba y no habia forma de llegar: el contenido excedia los
       100vh y el aside no scrolleaba. */
    overflow-y: auto;
    overscroll-behavior: contain;
    border-right: 1px solid var(--border);
    box-shadow: 2px 0 16px rgba(27, 69, 109, 0.05);
}

/* Empuja el pie hacia abajo cuando sobra alto, sin impedir que el conjunto
   scrollee cuando falta (por eso 1 0 auto y no 1 1 auto: nav no se comprime). */
.sidebar nav[b-bphc9he9wz] {
    flex: 1 0 auto;
}

.sidebar .brand[b-bphc9he9wz] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 1.5rem 1.25rem;
    border-bottom: 1px solid var(--brand-50);
    margin-bottom: 1rem;
}

.brand-logo[b-bphc9he9wz] {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-900) 0%, var(--brand-700) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(27, 69, 109, 0.25);
}

.sidebar .brand strong[b-bphc9he9wz] {
    display: block;
    font-family: 'Quicksand', sans-serif;
    font-size: 1.2rem;
    color: var(--sidebar-ink);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.1;
}

.sidebar .brand small[b-bphc9he9wz] {
    color: var(--sidebar-muted);
    font-size: 0.72rem;
    letter-spacing: 0.02em;
    font-style: italic;
}

.sidebar nav[b-bphc9he9wz] {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0 0.75rem;
    flex: 1;
}

/* Los estilos de .nav-item viven en app.css (global): NavLink es un componente
   hijo y el CSS scoped de este layout no le estampa el atributo de scope, asi
   que una regla scoped sobre .nav-item no matchea nunca. */

.sidebar-footer[b-bphc9he9wz] {
    padding: 1rem 1.25rem 0;
    border-top: 1px solid var(--brand-50);
    margin-top: 0.5rem;
}

.user-card[b-bphc9he9wz] {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.6rem;
    background: var(--surface-2);
    border-radius: 10px;
    border: 1px solid var(--brand-50);
}

.user-avatar[b-bphc9he9wz] {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-900) 0%, var(--brand-700) 100%);
    object-fit: cover;
    flex-shrink: 0;
}

.user-avatar.fallback[b-bphc9he9wz] {
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
}

.user-info[b-bphc9he9wz] {
    min-width: 0;
    flex: 1;
}

.user-info strong[b-bphc9he9wz] {
    display: block;
    color: var(--brand-900);
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-info small[b-bphc9he9wz] {
    color: var(--muted);
    font-size: 0.68rem;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.logout-btn[b-bphc9he9wz] {
    width: 100%;
    padding: 0.5rem;
    background: transparent;
    color: var(--cta);
    border: 1px solid var(--cta-soft);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.logout-btn:hover[b-bphc9he9wz] {
    background: var(--cta-soft);
    border-color: var(--cta);
}

.muted-light[b-bphc9he9wz] {
    color: var(--sidebar-muted);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
}

.content[b-bphc9he9wz] {
    flex: 1;
    padding: 1.5rem 1.6rem;
    overflow-x: auto;
    min-width: 0;
    background: var(--surface-2);
}

#blazor-error-ui[b-bphc9he9wz] {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss[b-bphc9he9wz] {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}
/* /Components/Pages/Login.razor.rz.scp.css */
/* ============ Split layout ============ */
.login-split[b-1qj7jhbcdk] {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    width: 100%;
    max-width: 1180px;
    min-height: 640px;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(15, 50, 82, 0.45);
    position: relative;
    z-index: 1;
}

/* ============ Visual side ============ */
.login-visual[b-1qj7jhbcdk] {
    position: relative;
    background-image: url('https://images.unsplash.com/photo-1530521954074-e64f6810b32d?w=1400&q=80&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-color: #1B456D;
    color: #fff;
    overflow: hidden;
}

.visual-overlay[b-1qj7jhbcdk] {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(27, 69, 109, 0.78) 0%, rgba(58, 118, 167, 0.55) 50%, rgba(27, 69, 109, 0.85) 100%),
        radial-gradient(circle at 20% 80%, rgba(255, 87, 87, 0.18) 0%, transparent 60%);
}

.visual-content[b-1qj7jhbcdk] {
    position: relative;
    z-index: 2;
    padding: 2.5rem 3rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 640px;
    box-sizing: border-box;
}

/* Brand mark top-left */
.brand-mark[b-1qj7jhbcdk] {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.brand-d[b-1qj7jhbcdk] {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #fff;
    color: #1B456D;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.brand-name strong[b-1qj7jhbcdk] {
    display: block;
    font-family: 'Quicksand', sans-serif;
    font-size: 1.4rem;
    color: #fff;
    line-height: 1;
    letter-spacing: -0.01em;
}

.brand-name small[b-1qj7jhbcdk] {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.78rem;
    font-style: italic;
    letter-spacing: 0.03em;
}

/* Centered tagline */
.tagline[b-1qj7jhbcdk] {
    align-self: flex-start;
    max-width: 460px;
}

.tagline h2[b-1qj7jhbcdk] {
    font-family: 'Quicksand', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.05;
    margin: 0;
    color: #fff;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.tagline .accent[b-1qj7jhbcdk] {
    background: linear-gradient(90deg, #FF5757 0%, #FFB199 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-style: italic;
}

.tagline p[b-1qj7jhbcdk] {
    margin: 1rem 0 0;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    max-width: 420px;
}

/* Icon strip (elementos recurrentes del manual) */
.icons-row[b-1qj7jhbcdk] {
    display: flex;
    gap: 0.85rem;
    align-items: center;
}

.icons-row .ico[b-1qj7jhbcdk] {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #fff;
    transition: transform 0.2s, background 0.2s;
}

.icons-row .ico:hover[b-1qj7jhbcdk] {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.22);
}

/* ============ Form side ============ */
.login-form-side[b-1qj7jhbcdk] {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 3rem;
    background: #101b2b;
}

.login-card-2[b-1qj7jhbcdk] {
    width: 100%;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-head h1[b-1qj7jhbcdk] {
    font-family: 'Quicksand', sans-serif;
    font-size: 2rem;
    color: #e8f0f8;
    margin: 0 0 0.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.form-head p[b-1qj7jhbcdk] {
    color: #8fa9c0;
    margin: 0;
    font-size: 0.9rem;
}

.login-form-2[b-1qj7jhbcdk] {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.login-form-2 label[b-1qj7jhbcdk] {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: #a9c4dc;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.login-form-2 input[b-1qj7jhbcdk] {
    width: 100%;
    box-sizing: border-box;
    padding: 0.85rem 1rem;
    border: 1.5px solid #28405c;
    border-radius: 12px;
    font-size: 0.95rem;
    font-family: inherit;
    background: #16273c;
    color: #e8f0f8;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
    font-weight: 500;
    text-transform: none;
    letter-spacing: normal;
}

.login-form-2 input[b-1qj7jhbcdk]::placeholder {
    color: #54718e;
    font-weight: 400;
}

.login-form-2 input:focus[b-1qj7jhbcdk] {
    outline: none;
    border-color: #4a8ec2;
    background: #1b3049;
    box-shadow: 0 0 0 4px rgba(58, 118, 167, 0.15);
}

.btn-login-2[b-1qj7jhbcdk] {
    margin-top: 0.5rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #1B456D 0%, #3A76A7 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: 0.01em;
    box-shadow: 0 6px 18px rgba(27, 69, 109, 0.35);
    transition: transform 0.1s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    position: relative;
    overflow: hidden;
}

.btn-login-2[b-1qj7jhbcdk]::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 87, 87, 0.0) 0%, rgba(255, 87, 87, 0.0) 100%);
    transition: background 0.3s;
}

.btn-login-2:hover[b-1qj7jhbcdk] {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(27, 69, 109, 0.45);
}

.btn-login-2:hover[b-1qj7jhbcdk]::before {
    background: linear-gradient(135deg, rgba(255, 87, 87, 0.12) 0%, rgba(255, 10, 7, 0.0) 100%);
}

.btn-login-2 .arrow[b-1qj7jhbcdk] {
    transition: transform 0.2s;
}

.btn-login-2:hover .arrow[b-1qj7jhbcdk] {
    transform: translateX(4px);
}

.login-error[b-1qj7jhbcdk] {
    background: #3a1620;
    color: #ff8f8f;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    font-size: 0.85rem;
    border: 1px solid #5d2430;
}

.login-foot-2[b-1qj7jhbcdk] {
    text-align: center;
    color: #97afc8;
    font-size: 0.78rem;
    margin: 0.5rem 0 0;
    line-height: 1.5;
}

.form-foot-brand[b-1qj7jhbcdk] {
    border-top: 1px solid #22364e;
    padding-top: 1rem;
    color: #97afc8;
    font-size: 0.72rem;
    text-align: center;
    letter-spacing: 0.05em;
}

.form-foot-brand span[b-1qj7jhbcdk] {
    display: inline-flex;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #1B456D;
    color: #fff;
    align-items: center;
    justify-content: center;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 0.7rem;
    margin-right: 0.35rem;
    vertical-align: -3px;
}

/* ============ Responsive ============ */
@media (max-width: 880px) {
    .login-split[b-1qj7jhbcdk] {
        grid-template-columns: 1fr;
        max-width: 460px;
        min-height: auto;
    }

    .login-visual[b-1qj7jhbcdk] {
        min-height: 280px;
    }

    .visual-content[b-1qj7jhbcdk] {
        min-height: 280px;
        padding: 1.75rem 1.5rem;
    }

    .tagline h2[b-1qj7jhbcdk] {
        font-size: 1.9rem;
    }

    .tagline p[b-1qj7jhbcdk] {
        display: none;
    }

    .login-form-side[b-1qj7jhbcdk] {
        padding: 2rem 1.5rem;
    }
}
