/* ================================================================
   Visual compartilhado (hero, login-card, splash-loader, notfound)
   Extraído do <style> embutido no Home.razor pra ficar disponível
   em qualquer página do projeto — Home.razor continua com o
   próprio <style> intocado, essas classes só ficam duplicadas
   (mesmo conteúdo), sem risco pro agendamento que já funciona.
   ================================================================ */


    /* ===== HERO — cachorro esquerda / gato direita ===== */
    .hero-bg {
        position: fixed;
        inset: 0;
        z-index: 0;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

        /* Metade esquerda — cachorro */
        .hero-bg::before {
            content: '';
            background-image: url('https://images.unsplash.com/photo-1587300003388-59208cc962cb?w=960&q=85&auto=format&fit=crop&crop=right');
            background-size: cover;
            background-position: right center;
        }

        /* Metade direita — gato */
        .hero-bg::after {
            content: '';
            background-image: url('https://images.unsplash.com/photo-1514888286974-6c03e2ca1dba?w=960&q=85&auto=format&fit=crop&crop=left');
            background-size: cover;
            background-position: left center;
        }

    /* Em mobile volta para 1 coluna com gato+cachorro juntos */
    @media (max-width: 600px) {
        .hero-bg {
            grid-template-columns: 1fr;
        }

            .hero-bg::after {
                display: none;
            }

            .hero-bg::before {
                background-image: url('https://images.unsplash.com/photo-1450778869180-41d0601e046e?w=800&q=85&auto=format&fit=crop');
                background-position: center center;
            }
    }

    .hero-overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient( 135deg, rgba(13, 71, 161, 0.82) 0%, rgba(21, 101, 192, 0.70) 40%, rgba(100, 60, 180, 0.65) 100% );
    }

    .hero-content {
        position: relative;
        z-index: 1;
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 16px;
        overflow-y: auto;
    }

    /* ===== CARD DE LOGIN ===== */
    .login-card {
        background: white;
        border-radius: 20px;
        box-shadow: 0 24px 64px rgba(0,0,0,0.35);
        width: 100%;
        max-width: 480px;
        overflow: hidden;
        animation: slideUp 0.5s ease-out;
    }

    @keyframes slideUp {
        from {
            opacity: 0;
            transform: translateY(32px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* ===== CABEÇALHO DINÂMICO DO CLIENTE ===== */
    .client-header {
        background: #f8f9fa;
        border-bottom: 1px solid #e0e0e0;
    }

    .html-container {
        width: 100%;
        max-width: 100%;
        overflow: auto;
        box-sizing: border-box;
        /* Escala o HTML para caber na largura do card */
        transform-origin: top left;
    }

        .html-container img,
        .html-container table,
        .html-container iframe {
            max-width: 100% !important;
            height: auto !important;
        }

    /* ===== ÁREA DO FORMULÁRIO ===== */
    .login-form-area {
        padding: 28px 28px 20px;
    }

    @media (max-width: 480px) {
        .login-form-area {
            padding: 20px 16px 16px;
        }
    }

    /* ===== LOGO LINK ===== */
    .logo-link:hover img {
        opacity: 1 !important;
    }

    /* ===== SPLASH ===== */
    .splash-loader {
        position: fixed;
        inset: 0;
        z-index: 9999;
        overflow: hidden;
        font-family: 'Roboto', sans-serif;
    }

    .splash-bg {
        position: absolute;
        inset: 0;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .splash-bg-dog {
        background-image: url('https://images.unsplash.com/photo-1587300003388-59208cc962cb?w=960&q=85&auto=format&fit=crop&crop=right');
        background-size: cover;
        background-position: right center;
    }

    .splash-bg-cat {
        background-image: url('https://images.unsplash.com/photo-1514888286974-6c03e2ca1dba?w=960&q=85&auto=format&fit=crop&crop=left');
        background-size: cover;
        background-position: left center;
    }

    .splash-overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, rgba(13,71,161,0.80) 0%, rgba(21,101,192,0.68) 40%, rgba(80,50,170,0.72) 100%);
    }

    .bg-paw {
        position: absolute;
        font-size: 48px;
        opacity: 0.07;
        animation: bgFloat 6s ease-in-out infinite;
        pointer-events: none;
    }

    @keyframes bgFloat {
        0%, 100% {
            transform: translateY(0) rotate(-10deg);
        }

        50% {
            transform: translateY(-18px) rotate(8deg);
        }
    }

    .splash-card {
        position: absolute;
        inset: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 20px;
    }

        .splash-card > div, .splash-card > img, .splash-card > span {
            position: relative;
            z-index: 1;
        }

    .splash-logo-card {
        width: 200px;
        filter: brightness(0) invert(1);
        animation: splashIn 0.8s ease-out 0.1s both;
    }

    .splash-text-card {
        color: rgba(255,255,255,0.92);
        font-size: 1rem;
        font-weight: 400;
        letter-spacing: 0.03em;
        animation: splashIn 0.8s ease-out 0.4s both;
    }

    .paws-container {
        display: flex;
        align-items: center;
        gap: 6px;
        height: 36px;
        position: relative;
        z-index: 1;
    }

    .paw {
        font-size: 22px;
        opacity: 0;
        transform: translateY(8px) scale(0.7);
        animation: pawStep 1.8s ease-in-out infinite;
    }

        .paw:nth-child(1) {
            animation-delay: 0.0s;
        }

        .paw:nth-child(2) {
            animation-delay: 0.2s;
        }

        .paw:nth-child(3) {
            animation-delay: 0.4s;
        }

        .paw:nth-child(4) {
            animation-delay: 0.6s;
        }

        .paw:nth-child(5) {
            animation-delay: 0.8s;
        }

    @keyframes pawStep {
        0% {
            opacity: 0;
            transform: translateY(8px) scale(0.7);
        }

        20% {
            opacity: 1;
            transform: translateY(0) scale(1.1);
        }

        40% {
            opacity: 0.6;
            transform: translateY(2px) scale(1);
        }

        100% {
            opacity: 0;
            transform: translateY(8px) scale(0.7);
        }
    }

    .splash-bar-track {
        width: 220px;
        height: 3px;
        background: rgba(255,255,255,0.2);
        border-radius: 8px;
        overflow: hidden;
        position: relative;
        z-index: 1;
        animation: splashIn 0.5s ease-out 0.5s both;
    }

    .splash-bar-fill {
        height: 100%;
        background: rgba(255,255,255,0.85);
        border-radius: 8px;
        animation: barIndeterminate 1.6s ease-in-out infinite;
    }

    @keyframes barIndeterminate {
        0% {
            width: 0%;
            margin-left: 0%;
        }

        50% {
            width: 60%;
            margin-left: 20%;
        }

        100% {
            width: 0%;
            margin-left: 100%;
        }
    }

    @keyframes splashIn {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }

    @media (max-width: 600px) {
        .splash-bg {
            grid-template-columns: 1fr;
        }

        .splash-bg-cat {
            display: none;
        }

        .splash-bg-dog {
            background-image: url('https://images.unsplash.com/photo-1450778869180-41d0601e046e?w=800&q=85&auto=format&fit=crop');
            background-position: center;
        }

        .splash-logo-card {
            width: 160px;
        }
    }

    /* ===== NOT FOUND ===== */
    .notfound-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100vh;
        background-color: #0d47a1;
        color: white;
        text-align: center;
        padding: 0 32px;
    }

    .notfound-logo {
        display: block;
        width: 80px;
        margin: 0 auto 16px;
        filter: brightness(0) invert(1);
    }

    .notfound-title {
        font-weight: 600;
        margin-bottom: 8px;
    }

    .notfound-subtitle {
        opacity: 0.9;
    }

    @media (max-width: 600px) {
        .notfound-logo {
            width: 70px;
        }
    }

