/* ============================================
   Dtech Theme — Login (anonymous pages)
   Modern, clean, light. Replaces GLPI 11 default.
   v2 — reescrito com base no HTML real do GLPI 11
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --dtech-blue:        #0066cc;  /* "d" do logo */
    --dtech-blue-dark:   #0052a3;
    --dtech-blue-light:  #4da6e0;  /* "tech" do logo */
    --dtech-bg:          #fafbfc;
    --dtech-text:        #1a2733;
    --dtech-text-soft:   #6b7785;
    --dtech-border:      #e4e7eb;
    --dtech-shadow: 0 20px 60px -15px rgba(0, 102, 204, 0.18),
                    0 8px 24px -8px rgba(15, 23, 42, 0.06);
}

/* ============================================
   Body & layout
   ============================================ */
body.welcome-anonymous {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif !important;
    background: var(--dtech-bg) !important;
    color: var(--dtech-text) !important;
    min-height: 100vh;
    margin: 0;
    position: relative;
    overflow-x: hidden;
}

/* Background blobs decorativos */
body.welcome-anonymous::before,
body.welcome-anonymous::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    pointer-events: none;
}
body.welcome-anonymous::before {
    top: -200px;
    left: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(77, 166, 224, 0.35), transparent 70%);
}
body.welcome-anonymous::after {
    bottom: -250px;
    right: -200px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(0, 102, 204, 0.22), transparent 70%);
}

/* Coloca todo conteudo acima dos blobs */
body.welcome-anonymous .page-anonymous {
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

/* ============================================
   Esconde o logo padrão do GLPI (fora do card)
   ============================================ */
body.welcome-anonymous .glpi-logo {
    display: none !important;
}

/* ============================================
   Container central
   ============================================ */
body.welcome-anonymous .container-tight {
    max-width: 480px !important;
    padding: 24px !important;
    margin: 0 auto;
}

/* ============================================
   Card principal
   ============================================ */
body.welcome-anonymous .card.card-md.main-content-card,
body.welcome-anonymous .card.main-content-card {
    background: #ffffff !important;
    border: none !important;
    border-radius: 24px !important;
    box-shadow: var(--dtech-shadow) !important;
    overflow: hidden;
    padding: 0;
}

/* card-header VAZIO no topo do card → vira o lugar do logo */
body.welcome-anonymous .card.main-content-card > .card-header {
    background: #ffffff !important;
    border: none !important;
    padding: 36px 40px 0 40px !important;
    height: auto !important;
    min-height: 0 !important;
    display: block;
}
body.welcome-anonymous .card.main-content-card > .card-header::before {
    content: '';
    display: block;
    height: 80px;
    background-image: url('../images/dtech-logo.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
    margin-bottom: 8px;
}
body.welcome-anonymous .card.main-content-card > .card-header::after {
    content: 'Central de Atendimento';
    display: block;
    text-align: center;
    font-size: 13px;
    font-weight: 400;
    color: var(--dtech-text-soft);
    letter-spacing: 0.5px;
}

body.welcome-anonymous .card-body {
    padding: 28px 40px 36px 40px !important;
}

/* ============================================
   "Faça login para sua conta" — esconder
   (o logo + tagline já comunicam)
   ============================================ */
body.welcome-anonymous .card-body .card-header {
    display: none !important;
}

/* Garante que a coluna interna ocupa toda a largura */
body.welcome-anonymous .card-body .row.justify-content-center > .col-md-5 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* ============================================
   Form labels
   ============================================ */
body.welcome-anonymous .form-label {
    font-size: 11px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.7px !important;
    color: var(--dtech-text-soft) !important;
    margin-bottom: 6px !important;
}

/* Linha de label + "esqueceu senha" lado a lado */
body.welcome-anonymous .mb-4 > .d-flex {
    align-items: center;
    margin-bottom: 6px;
}
body.welcome-anonymous .mb-4 > .d-flex .form-label {
    margin-bottom: 0 !important;
}
body.welcome-anonymous .form-label-description.forgot_password {
    margin-left: auto !important;
}
body.welcome-anonymous .forgot_password a {
    color: var(--dtech-blue) !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}
body.welcome-anonymous .forgot_password a:hover {
    color: var(--dtech-blue-dark) !important;
    text-decoration: underline !important;
}

/* ============================================
   Inputs
   ============================================ */
body.welcome-anonymous .form-control {
    background: #f6f8fb !important;
    border: 1.5px solid transparent !important;
    border-radius: 12px !important;
    padding: 14px 16px !important;
    font-size: 15px !important;
    color: var(--dtech-text) !important;
    transition: all 0.18s ease !important;
    box-shadow: none !important;
    width: 100% !important;
    height: auto !important;
}
body.welcome-anonymous .form-control:hover {
    background: #eef2f7 !important;
}
body.welcome-anonymous .form-control:focus {
    background: #ffffff !important;
    border-color: var(--dtech-blue) !important;
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.10) !important;
    outline: none !important;
}
body.welcome-anonymous .form-control::placeholder {
    color: #9aa6b2 !important;
}

/* ============================================
   Select (Origem de login)
   ============================================ */
body.welcome-anonymous .form-select,
body.welcome-anonymous .select2-container--default .select2-selection--single {
    background: #f6f8fb !important;
    border: 1.5px solid transparent !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
    color: var(--dtech-text) !important;
    height: auto !important;
    min-height: 50px !important;
    box-shadow: none !important;
}
body.welcome-anonymous .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 1.4 !important;
    color: var(--dtech-text) !important;
    padding: 0 !important;
}
body.welcome-anonymous .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 50px !important;
    right: 12px !important;
}

/* ============================================
   Toggle "Lembrar de mim"
   ============================================ */
body.welcome-anonymous .mb-2 {
    margin-top: 20px !important;
    margin-bottom: 24px !important;
}
body.welcome-anonymous label.form-check {
    display: flex !important;
    align-items: center !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
    user-select: none;
}
body.welcome-anonymous label.form-check .form-check-input {
    width: 38px !important;
    height: 22px !important;
    border-radius: 12px !important;
    background-color: #cbd5e1 !important;
    background-image: none !important;
    border: none !important;
    cursor: pointer !important;
    position: relative !important;
    transition: background-color 0.2s !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    margin: 0 12px 0 0 !important;
    flex-shrink: 0 !important;
    box-shadow: none !important;
}
body.welcome-anonymous label.form-check .form-check-input::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: #ffffff;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
body.welcome-anonymous label.form-check .form-check-input:checked {
    background-color: var(--dtech-blue) !important;
    background-image: none !important;
}
body.welcome-anonymous label.form-check .form-check-input:checked::before {
    transform: translateX(16px);
}
body.welcome-anonymous label.form-check .form-check-input:focus {
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.12) !important;
}
body.welcome-anonymous label.form-check .form-check-label {
    font-size: 14px !important;
    color: var(--dtech-text) !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    margin: 0 !important;
}

/* ============================================
   Botão "Entrar"
   ============================================ */
body.welcome-anonymous .btn-primary,
body.welcome-anonymous button.btn-primary {
    background: var(--dtech-blue) !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 14px 20px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px !important;
    color: #ffffff !important;
    width: 100% !important;
    box-shadow: 0 4px 14px -4px rgba(0, 102, 204, 0.4) !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    height: auto !important;
}
body.welcome-anonymous .btn-primary:hover {
    background: var(--dtech-blue-dark) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 8px 20px -4px rgba(0, 102, 204, 0.5) !important;
}
body.welcome-anonymous .btn-primary:active {
    transform: translateY(0) !important;
}

/* ============================================
   Form footer
   ============================================ */
body.welcome-anonymous .form-footer {
    margin-top: 8px !important;
}

/* ============================================
   Copyright / "powered by GLPI" — escondido
   ============================================ */
body.welcome-anonymous .text-center.text-muted,
body.welcome-anonymous .copyright,
body.welcome-anonymous a.copyright {
    display: none !important;
}

/* ============================================
   Responsivo
   ============================================ */
@media (max-width: 540px) {
    body.welcome-anonymous .container-tight {
        padding: 16px !important;
    }
    body.welcome-anonymous .card.main-content-card > .card-header {
        padding: 28px 24px 0 24px !important;
    }
    body.welcome-anonymous .card.main-content-card > .card-header::before {
        height: 64px;
    }
    body.welcome-anonymous .card-body {
        padding: 20px 24px 28px 24px !important;
    }
}
