:root {
    --emam-hml-navy-950: #07111f;
    --emam-hml-navy-900: #0b1f33;
    --emam-hml-navy-800: #12324f;
    --emam-hml-amber-500: #f59e0b;
    --emam-hml-amber-400: #fbbf24;
    --emam-hml-slate-100: #f1f5f9;
    --emam-hml-slate-300: #cbd5e1;
    --emam-hml-slate-700: #334155;
}

body.welcome-anonymous {
    min-height: 100vh;
    background:
        linear-gradient(125deg, rgba(7, 17, 31, 0.96) 0%, rgba(11, 31, 51, 0.91) 48%, rgba(18, 50, 79, 0.84) 100%),
        url('/custom/fundo_ti.png') center / cover fixed no-repeat !important;
    color: var(--emam-hml-navy-950);
}

body.welcome-anonymous::before {
    content: "HOMOLOGAÇÃO  •  AMBIENTE DE TESTES";
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 10000;
    min-height: 36px;
    padding: 9px 16px;
    background: repeating-linear-gradient(
        -45deg,
        var(--emam-hml-amber-500),
        var(--emam-hml-amber-500) 14px,
        var(--emam-hml-amber-400) 14px,
        var(--emam-hml-amber-400) 28px
    );
    color: var(--emam-hml-navy-950);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
    font: 800 0.78rem/1.1 system-ui, -apple-system, "Segoe UI", sans-serif;
    letter-spacing: 0.16em;
    text-align: center;
}

body.welcome-anonymous .page-anonymous {
    min-height: 100vh;
    padding-top: 52px;
}

body.welcome-anonymous .container-tight {
    width: min(100% - 28px, 500px);
    max-width: 500px !important;
    animation: none !important;
}

body.welcome-anonymous .glpi-logo {
    --logo: url('/custom/emamasfaltos.png');
    content: var(--logo);
    display: block;
    width: min(440px, 82vw) !important;
    height: 104px !important;
    margin-inline: auto;
    padding: 14px 24px !important;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 18px !important;
    box-sizing: border-box !important;
    background-color: rgba(255, 255, 255, 0.94) !important;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.28) !important;
    object-fit: contain;
}

body.welcome-anonymous .main-content-card {
    overflow: hidden;
    border: 1px solid rgba(245, 158, 11, 0.52) !important;
    border-radius: 20px !important;
    background: rgba(248, 250, 252, 0.97) !important;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.38) !important;
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;
}

body.welcome-anonymous .main-content-card::before {
    content: "LAB  /  GLPI EMAM";
    display: block;
    padding: 12px 20px;
    border-bottom: 1px solid #dce3eb;
    background: var(--emam-hml-navy-900);
    color: var(--emam-hml-amber-400);
    font: 800 0.72rem/1 system-ui, -apple-system, "Segoe UI", sans-serif;
    letter-spacing: 0.18em;
}

body.welcome-anonymous .main-content-card .card-header,
body.welcome-anonymous .main-content-card .card-body {
    border: 0 !important;
    background: transparent !important;
}

body.welcome-anonymous .main-content-card .card-body {
    padding: 24px 30px 28px;
}

body.welcome-anonymous .card-header h2,
body.welcome-anonymous label,
body.welcome-anonymous .form-label {
    color: var(--emam-hml-navy-900) !important;
    text-shadow: none !important;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif !important;
    letter-spacing: normal;
}

body.welcome-anonymous .form-control,
body.welcome-anonymous .form-select {
    min-height: 46px;
    border: 1px solid var(--emam-hml-slate-300) !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    color: var(--emam-hml-navy-950) !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05) !important;
}

body.welcome-anonymous .form-control:focus,
body.welcome-anonymous .form-select:focus {
    border-color: var(--emam-hml-amber-500) !important;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18) !important;
}

body.welcome-anonymous .btn-primary {
    min-height: 46px;
    border: 1px solid #d97706 !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, var(--emam-hml-amber-400), var(--emam-hml-amber-500)) !important;
    color: var(--emam-hml-navy-950) !important;
    box-shadow: 0 9px 22px rgba(217, 119, 6, 0.22) !important;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif !important;
    font-weight: 800;
    text-transform: none;
}

body.welcome-anonymous .btn-primary:hover,
body.welcome-anonymous .btn-primary:focus {
    border-color: var(--emam-hml-amber-400) !important;
    background: var(--emam-hml-navy-900) !important;
    color: #ffffff !important;
    box-shadow: 0 10px 28px rgba(7, 17, 31, 0.34) !important;
}

.emam-hml-login-notice {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 0 0 20px;
    padding: 12px 14px;
    border: 1px solid rgba(217, 119, 6, 0.34);
    border-radius: 12px;
    background: #fffbeb;
    color: var(--emam-hml-navy-900);
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

.emam-hml-login-notice__dot {
    flex: 0 0 auto;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--emam-hml-amber-500);
    box-shadow: 0 0 0 5px rgba(245, 158, 11, 0.18);
}

.emam-hml-login-notice span:last-child {
    display: grid;
    gap: 2px;
}

.emam-hml-login-notice strong {
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.emam-hml-login-notice small {
    color: var(--emam-hml-slate-700);
    font-size: 0.75rem;
}

body.welcome-anonymous .copyright {
    color: rgba(255, 255, 255, 0.72) !important;
}

@media (max-width: 575.98px) {
    body.welcome-anonymous::before {
        font-size: 0.65rem;
        letter-spacing: 0.1em;
    }

    body.welcome-anonymous .main-content-card .card-body {
        padding: 20px;
    }

    body.welcome-anonymous .glpi-logo {
        height: 86px !important;
        padding: 10px 16px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.welcome-anonymous *,
    body.welcome-anonymous *::before,
    body.welcome-anonymous *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}
