/*
 * Remscheid Login-Branding
 * GLPI 11
 */

/* =========================================================
   Hintergrund
   ========================================================= */

html.remscheid-login-page,
html.remscheid-login-page body {
    min-height: 100%;
}

html.remscheid-login-page body {
    min-height: 100vh;
    overflow-x: hidden;

    background:
        linear-gradient(
            rgba(2, 15, 28, 0.12),
            rgba(2, 15, 28, 0.12)
        ),
        url("../images/login-background.png")
        center center / cover no-repeat fixed !important;
}

html.remscheid-login-page .page,
html.remscheid-login-page .page-wrapper,
html.remscheid-login-page .page-body,
html.remscheid-login-page .page-center,
html.remscheid-login-page .container,
html.remscheid-login-page .container-tight {
    background: transparent !important;
}

/* =========================================================
   Zentrierung
   ========================================================= */

html.remscheid-login-page .page,
html.remscheid-login-page .page-center {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    min-height: 100vh !important;
    padding: 24px !important;
}

html.remscheid-login-page .remscheid-login-wrapper {
    display: block !important;

    width: min(690px, calc(100vw - 48px)) !important;
    max-width: 690px !important;

    margin: auto !important;

    /*
     * Die Kachel liegt etwas unterhalb der Bildschirmmitte.
     */
    transform: translateY(55px) !important;
}

/* =========================================================
   Login-Kachel
   ========================================================= */

html.remscheid-login-page .remscheid-login-card {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;

    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, 0.34) !important;
    border-radius: 26px !important;

    /*
     * Bewusst sehr transparente Glasfläche.
     */
    background:
        linear-gradient(
            145deg,
            rgba(235, 245, 252, 0.20),
            rgba(180, 204, 221, 0.10)
        ) !important;

    box-shadow:
        0 28px 80px rgba(0, 10, 22, 0.30),
        0 8px 24px rgba(0, 10, 22, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.34) !important;

    backdrop-filter: blur(16px) saturate(125%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(125%) !important;
}

html.remscheid-login-page .remscheid-login-card .card-body {
    padding: 46px 64px 48px !important;
}

/* =========================================================
   Logo und GLPI-Fußzeile entfernen
   ========================================================= */

html.remscheid-login-page .remscheid-hidden,
html.remscheid-login-page footer,
html.remscheid-login-page .footer,
html.remscheid-login-page .copyright {
    display: none !important;
}

/*
 * Zusätzliche Absicherung für typische GLPI-Logobereiche.
 */
html.remscheid-login-page img[src*="login_logo"],
html.remscheid-login-page img[src*="login-logo"],
html.remscheid-login-page img[src*="login_logo_glpi"] {
    display: none !important;
}

/* =========================================================
   Portalüberschrift
   ========================================================= */

html.remscheid-login-page .remscheid-login-header {
    margin: 0 0 36px;
    text-align: center;
}

html.remscheid-login-page .remscheid-portal-title {
    margin: 0;

    color: #103b5c;
    font-size: clamp(1.7rem, 2vw, 2.1rem);
    font-weight: 750;
    line-height: 1.15;
    letter-spacing: -0.025em;

    text-shadow:
        0 1px 2px rgba(255, 255, 255, 0.55);
}

html.remscheid-login-page .remscheid-portal-subtitle {
    max-width: 560px;
    margin: 12px auto 0;

    color: #214c68;
    font-size: clamp(1rem, 1.2vw, 1.16rem);
    font-weight: 520;
    line-height: 1.45;

    text-shadow:
        0 1px 2px rgba(255, 255, 255, 0.48);
}

html.remscheid-login-page .remscheid-login-header::after {
    content: "";

    display: block;
    width: 76px;
    height: 3px;

    margin: 23px auto 0;

    border-radius: 999px;
    background: linear-gradient(90deg, #0077a9, #49afd0);
}

/* =========================================================
   Formular
   ========================================================= */

html.remscheid-login-page .remscheid-login-card .form-label {
    margin-bottom: 7px;

    color: #173b55;
    font-weight: 650;

    text-shadow:
        0 1px 2px rgba(255, 255, 255, 0.42);
}

html.remscheid-login-page .remscheid-login-card .form-control,
html.remscheid-login-page .remscheid-login-card .form-select {
    min-height: 54px;

    border: 1px solid rgba(255, 255, 255, 0.48);
    border-radius: 12px;

    background: rgba(255, 255, 255, 0.64) !important;
    color: #142d40;

    box-shadow:
        0 2px 8px rgba(0, 20, 36, 0.09),
        inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

html.remscheid-login-page .remscheid-login-card .form-control:focus,
html.remscheid-login-page .remscheid-login-card .form-select:focus {
    border-color: #1682ae;

    background: rgba(255, 255, 255, 0.82) !important;

    box-shadow:
        0 0 0 4px rgba(22, 130, 174, 0.17),
        0 2px 8px rgba(0, 20, 36, 0.09);
}

html.remscheid-login-page .remscheid-login-card .form-check-label {
    color: #25465d;
}

/* =========================================================
   Anmeldebutton
   ========================================================= */

html.remscheid-login-page .remscheid-login-card button[type="submit"],
html.remscheid-login-page .remscheid-login-card input[type="submit"] {
    min-height: 52px;

    border: 0 !important;
    border-radius: 12px !important;

    background:
        linear-gradient(135deg, #0783b4, #005b85) !important;

    color: #fff !important;
    font-weight: 750;

    box-shadow:
        0 10px 23px rgba(0, 74, 109, 0.27);
}

html.remscheid-login-page .remscheid-login-card a {
    color: #006f9f;
    font-weight: 550;
}

/* =========================================================
   Smartphone
   ========================================================= */

@media (max-width: 575px) {
    html.remscheid-login-page body {
        background-attachment: scroll !important;
    }

    html.remscheid-login-page .page,
    html.remscheid-login-page .page-center {
        padding: 12px !important;
    }

    html.remscheid-login-page .remscheid-login-wrapper {
        width: calc(100vw - 24px) !important;
        transform: none !important;
    }

    html.remscheid-login-page .remscheid-login-card .card-body {
        padding: 30px 24px 32px !important;
    }

    html.remscheid-login-page .remscheid-portal-title {
        font-size: 1.48rem;
    }

    html.remscheid-login-page .remscheid-portal-subtitle {
        font-size: 0.98rem;
    }
}


/* =========================================================
   Finaler Feinschliff
   ========================================================= */

/* GLPI-Standardüberschrift innerhalb der Login-Kachel */
html.remscheid-login-page .remscheid-standard-heading-hidden {
    display: none !important;
}

/*
 * Kachel etwas unterhalb der Bildschirmmitte.
 * Bei Bedarf später nur diesen Wert ändern.
 */
html.remscheid-login-page .remscheid-login-wrapper {
    transform: translateY(75px) !important;
}

/*
 * Transparentere Glasfläche mit reduziertem Blur.
 */
html.remscheid-login-page .remscheid-login-card {
    border-color: rgba(255, 255, 255, 0.30) !important;

    background:
        linear-gradient(
            145deg,
            rgba(225, 239, 248, 0.15),
            rgba(153, 184, 205, 0.07)
        ) !important;

    box-shadow:
        0 26px 70px rgba(0, 10, 22, 0.26),
        0 8px 22px rgba(0, 10, 22, 0.13),
        inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;

    backdrop-filter: blur(10px) saturate(115%) !important;
    -webkit-backdrop-filter: blur(10px) saturate(115%) !important;
}

/*
 * Eingabefelder bleiben für gute Lesbarkeit etwas heller.
 */
html.remscheid-login-page .remscheid-login-card .form-control,
html.remscheid-login-page .remscheid-login-card .form-select {
    background: rgba(255, 255, 255, 0.72) !important;
}

/*
 * Copyright unterhalb der Kachel ausblenden.
 */
html.remscheid-login-page footer,
html.remscheid-login-page .footer,
html.remscheid-login-page .copyright,
html.remscheid-login-page [class*="copyright"] {
    display: none !important;
}

/*
 * Auf Smartphones keine zusätzliche Verschiebung nach unten.
 */
@media (max-width: 575px) {
    html.remscheid-login-page .remscheid-login-wrapper {
        transform: none !important;
    }
}


/* =========================================================
   Feintuning: Position und Lesbarkeit
   ========================================================= */

/* Login-Kachel weiter nach unten verschieben */
html.remscheid-login-page .remscheid-login-wrapper {
    transform: translateY(110px) !important;
}

/* Hauptüberschrift besser lesbar */
html.remscheid-login-page .remscheid-portal-title {
    color: #ffffff !important;

    text-shadow:
        0 2px 12px rgba(0, 0, 0, 0.70),
        0 1px 3px rgba(0, 0, 0, 0.85);
}

/* Untertitel besser lesbar */
html.remscheid-login-page .remscheid-portal-subtitle {
    color: rgba(255, 255, 255, 0.98) !important;

    text-shadow:
        0 2px 9px rgba(0, 0, 0, 0.78),
        0 1px 2px rgba(0, 0, 0, 0.85);
}

/* Beschriftungen Benutzername und Passwort */
html.remscheid-login-page .remscheid-login-card .form-label {
    color: #ffffff !important;
    font-weight: 700 !important;

    text-shadow:
        0 2px 7px rgba(0, 0, 0, 0.85);
}

/* Beschriftung „Angemeldet bleiben“ */
html.remscheid-login-page .remscheid-login-card .form-check-label {
    color: #ffffff !important;
    font-weight: 600 !important;

    text-shadow:
        0 2px 7px rgba(0, 0, 0, 0.85);
}

/* Link „Passwort vergessen?“ */
html.remscheid-login-page .remscheid-login-card a {
    color: #8edcff !important;
    font-weight: 650 !important;

    text-shadow:
        0 2px 7px rgba(0, 0, 0, 0.80);
}

html.remscheid-login-page .remscheid-login-card a:hover {
    color: #ffffff !important;
}

/* Trennlinie unter der Überschrift */
html.remscheid-login-page .remscheid-login-header::after {
    background: #5ed5ff !important;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.40);
}

/* Auf Smartphones keine zusätzliche Verschiebung */
@media (max-width: 575px) {
    html.remscheid-login-page .remscheid-login-wrapper {
        transform: none !important;
    }
}
