/*!
 * SAVD brand overrides for GLPI login page
 */

/* ── Logo fix — SAVD logo is wide (1180×507); let it size naturally ─── */
.page-anonymous .glpi-logo {
    width: auto !important;
    height: auto !important;
    max-height: 90px !important;
    max-width: 280px !important;
}

/* ── Page ─────────────────────────────────────────────── */
body.antialiased {
    background-color: #ffffff !important;
}

/* Thin lime-green accent strip pinned to the very top */
body.antialiased::before {
    content: '';
    display: block;
    height: 5px;
    background: linear-gradient(90deg, #8cb400 0%, #b4d400 100%);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
}

/* Push sticky navbar below the accent strip */
.navbar.sticky-top {
    top: 5px !important;
}

/* ── SAVD logo block above the login card ─────────────── */
.savd-login-branding {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0 1.25rem;
}

.savd-login-branding img {
    height: 44px;
    width: auto;
    display: block;
}

/* ── Card accent ──────────────────────────────────────── */
.singlesignon-auth-section--oauth .singlesignon-login {
    border-top: 3px solid #8cb400;
    border-radius: 0 0 14px 14px;
}

.singlesignon-auth-section--classic {
    border-top: 3px solid #8cb400 !important;
    border-radius: 0 0 12px 12px !important;
}

/* ── Buttons ──────────────────────────────────────────── */
.btn-primary {
    background-color: #8cb400 !important;
    border-color: #8cb400 !important;
    color: #fff !important;
    border-radius: 8px !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: #7a9c00 !important;
    border-color: #7a9c00 !important;
    color: #fff !important;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
    background-color: #f3f9e0 !important;
    border-color: #8cb400 !important;
    color: #5a7600 !important;
}

/* ── Form focus ring ──────────────────────────────────── */
.form-control:focus,
.form-select:focus {
    border-color: #8cb400 !important;
    box-shadow: 0 0 0 0.2rem rgba(140, 180, 0, 0.22) !important;
}

/* ── "Use GLPI login form" / "Use SSO" links ─────────── */
.singlesignon-login-classic .btn-link {
    color: #7a9c00 !important;
}
.singlesignon-login-classic .btn-link:hover {
    color: #5a7600 !important;
}

/* ── Tabler primary variable override ────────────────── */
:root {
    --tblr-primary: #8cb400;
    --tblr-primary-rgb: 140, 180, 0;
    --tblr-link-color: #7a9c00;
    --tblr-link-hover-color: #5a7600;
}
