/**
 * Nexus Tecnologia - Logo Alinhado com Design
 */

/* ============================================
   BACKGROUND
   ============================================ */

body.welcome-anonymous {
    background: linear-gradient(135deg, #00a651 0%, #008542 50%, #006633 100%) !important;
    min-height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
}

body.welcome-anonymous::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%) !important;
    pointer-events: none !important;
}

/* ============================================
   CONTAINER PRINCIPAL
   ============================================ */

body.welcome-anonymous .page-anonymous {
    position: relative !important;
    z-index: 1 !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 100vh !important;
    padding: 2rem !important;
}

body.welcome-anonymous .page-anonymous .flex-fill {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

body.welcome-anonymous .container-tight {
    width: 100% !important;
    max-width: 450px !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

/* ============================================
   CONTAINER DO LOGO
   ============================================ */

body.welcome-anonymous .text-center {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

body.welcome-anonymous .text-center .col-md {
    margin-bottom: 2.5rem !important;
    padding: 0 !important;
}

/* ============================================
   LOGO NEXUS - ALINHADO E ESTILIZADO
   ============================================ */

body.welcome-anonymous img[alt="Nexus Tecnologia"] {
    max-width: 240px !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 auto !important;
    display: block !important;
    filter: brightness(1.1) drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3)) !important;
    transition: all 0.3s ease !important;
}

body.welcome-anonymous img[alt="Nexus Tecnologia"]:hover {
    transform: scale(1.02) !important;
    filter: brightness(1.15) drop-shadow(0 12px 35px rgba(0, 0, 0, 0.35)) !important;
}

/* Ocultar qualquer elemento glpi-logo que ainda exista */
body.welcome-anonymous .glpi-logo {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.welcome-anonymous .glpi-logo * {
    display: none !important;
}

/* ============================================
   CARD DE LOGIN
   ============================================ */

body.welcome-anonymous .card {
    background: #ffffff !important;
    border: none !important;
    border-radius: 20px !important;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1) !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 450px !important;
    margin: 0 auto !important;
    overflow: hidden !important;
}

body.welcome-anonymous .card-md {
    max-width: 100% !important;
}

body.welcome-anonymous .card-body {
    padding: 2.5rem !important;
}

/* ============================================
   TÍTULO DO CARD
   ============================================ */

body.welcome-anonymous .card-title {
    color: #006633 !important;
    font-weight: 700 !important;
    font-size: 1.75rem !important;
    margin-bottom: 2rem !important;
    text-align: center !important;
    letter-spacing: -0.5px !important;
}

/* ============================================
   FORMULÁRIO
   ============================================ */

body.welcome-anonymous label {
    color: #333333 !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    margin-bottom: 0.5rem !important;
    display: block !important;
}

body.welcome-anonymous .form-control {
    border: 2px solid #e5e7eb !important;
    border-radius: 10px !important;
    padding: 0.875rem 1.25rem !important;
    font-size: 1rem !important;
    transition: all 0.2s ease !important;
    background: #ffffff !important;
    width: 100% !important;
}

body.welcome-anonymous .form-control:focus {
    border-color: #00a651 !important;
    box-shadow: 0 0 0 4px rgba(0, 166, 81, 0.1) !important;
    outline: none !important;
}

body.welcome-anonymous .form-control::placeholder {
    color: #9ca3af !important;
}

body.welcome-anonymous .mb-3 {
    margin-bottom: 1.5rem !important;
}

/* ============================================
   BOTÃO DE LOGIN
   ============================================ */

body.welcome-anonymous .btn-primary {
    background: linear-gradient(135deg, #00a651 0%, #008542 100%) !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 1rem 2rem !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 6px 20px rgba(0, 166, 81, 0.3) !important;
    width: 100% !important;
    margin-top: 1.5rem !important;
    cursor: pointer !important;
}

body.welcome-anonymous .btn-primary:hover {
    background: linear-gradient(135deg, #008542 0%, #006633 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(0, 166, 81, 0.4) !important;
}

body.welcome-anonymous .btn-primary:active {
    transform: translateY(0) !important;
}

/* ============================================
   CHECKBOX
   ============================================ */

body.welcome-anonymous .form-check {
    margin: 1rem 0 !important;
}

body.welcome-anonymous .form-check-input {
    border: 2px solid #00a651 !important;
    border-radius: 5px !important;
    width: 1.25rem !important;
    height: 1.25rem !important;
    cursor: pointer !important;
}

body.welcome-anonymous .form-check-input:checked {
    background-color: #00a651 !important;
    border-color: #00a651 !important;
}

body.welcome-anonymous .form-check-label {
    color: #6b7280 !important;
    font-size: 0.875rem !important;
    margin-left: 0.5rem !important;
    cursor: pointer !important;
}

/* ============================================
   LINKS
   ============================================ */

body.welcome-anonymous .card a {
    color: #00a651 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: color 0.2s ease !important;
}

body.welcome-anonymous .card a:hover {
    color: #008542 !important;
    text-decoration: underline !important;
}

/* ============================================
   FOOTER
   ============================================ */

body.welcome-anonymous .text-center.text-muted.mt-3 {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(10px) !important;
    padding: 1.25rem 2rem !important;
    border-radius: 15px !important;
    margin-top: 2rem !important;
    text-align: center !important;
}

body.welcome-anonymous .text-center.text-muted.mt-3::before {
    content: '© 2025 Nexus Tecnologia' !important;
    display: block !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    margin-bottom: 0.25rem !important;
    color: #ffffff !important;
}

body.welcome-anonymous .text-center.text-muted.mt-3::after {
    content: 'Sistema de Gestão de Chamados' !important;
    display: block !important;
    font-size: 0.875rem !important;
    margin-top: 0.25rem !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

body.welcome-anonymous .text-muted {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* ============================================
   ALERTAS
   ============================================ */

body.welcome-anonymous .alert {
    border-radius: 10px !important;
    border: none !important;
    padding: 1rem 1.25rem !important;
    margin-bottom: 1.5rem !important;
}

body.welcome-anonymous .alert-danger {
    background: #fee2e2 !important;
    color: #dc2626 !important;
    border-left: 4px solid #dc2626 !important;
}

body.welcome-anonymous .alert-info {
    background: #dcfce7 !important;
    color: #16a34a !important;
    border-left: 4px solid #16a34a !important;
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */

@media (max-width: 768px) {
    body.welcome-anonymous .page-anonymous {
        padding: 1rem !important;
    }
    
    body.welcome-anonymous .card-body {
        padding: 2rem 1.5rem !important;
    }
    
    body.welcome-anonymous img[alt="Nexus Tecnologia"] {
        max-width: 200px !important;
    }
    
    body.welcome-anonymous .card-title {
        font-size: 1.5rem !important;
    }
    
    body.welcome-anonymous .text-center .col-md {
        margin-bottom: 2rem !important;
    }
}

@media (max-width: 480px) {
    body.welcome-anonymous .card-body {
        padding: 1.5rem 1.25rem !important;
    }
    
    body.welcome-anonymous img[alt="Nexus Tecnologia"] {
        max-width: 180px !important;
    }
    
    body.welcome-anonymous .text-center .col-md {
        margin-bottom: 1.5rem !important;
    }
}

/* ============================================
   ANIMAÇÕES
   ============================================ */

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body.welcome-anonymous .card {
    animation: fadeInScale 0.5s ease-out !important;
}

body.welcome-anonymous img[alt="Nexus Tecnologia"] {
    animation: fadeInDown 0.6s ease-out !important;
}

/* ============================================
   MARCA D'ÁGUA
   ============================================ */

body.welcome-anonymous::after {
    content: 'Nexus Tecnologia' !important;
    position: fixed !important;
    bottom: 20px !important;
    right: 30px !important;
    font-size: 0.75rem !important;
    color: rgba(255, 255, 255, 0.4) !important;
    font-weight: 600 !important;
    letter-spacing: 1px !important;
    z-index: 1000 !important;
    pointer-events: none !important;
}

/* ============================================
   ESPAÇAMENTO VERTICAL PERFEITO
   ============================================ */

body.welcome-anonymous .container-tight > * {
    margin-top: 0 !important;
}

body.welcome-anonymous .container-tight > *:first-child {
    padding-top: 0 !important;
}
