﻿/* =========================
   login.css (final)
   Ziele:
   - Fullscreen sauber zentriert (browser-sicher)
   - Header (Logo + Titel) rechtsbündig
   - Felder: Hintergrund blau, Icon-Bereich weiß, keine Trennlinie/kein Rahmen am Icon
   - Focus: blauer Rand
   - Button einheitlich, rechtsbündig, grau/blau per .is-active
   - möglichst wenig Dopplungen
   ========================= */

nav {
    display: none !important;
}

/* Browser-sicheres Centering */
html, body {
    height: 100%;
    margin: 0;
}

/* Wichtig: wir „entkoppeln“ uns von Layout-Workarounds (table-row/top/left etc.)
   und zentrieren den Login zuverlässig über fixed + flex. */
.container {
    position: fixed;
    inset: 0;
    display: flex !important;
    align-items: center;
    justify-content: center;
    height: auto !important;
    min-height: 0 !important;
}

/* Wrapper (wie in anderen Produkten) */
.login-wrapper {
    width: 412px;
    max-width: calc(100vw - 40px);
    display: flex;
    flex-direction: column;
    align-items: stretch; /* Kinder sollen volle Breite nutzen */
}

/* Header: rechtsbündig */
.login-head {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    margin: 0 0 10px 0 !important;
}

.logo {
    width: 75px;
    max-width: 90px;
    display: block;
    margin-bottom: 6px;
}

.title {
    width: 312px;
    height: auto;
    color: #C4C4C4;
    text-align: right;
    font-family: "Open Sans", sans-serif;
    font-size: 32px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    align-self: flex-end; /* bleibt rechtsbündig im Layout */
}

/* Bootstrap-Row/Col nicht benutzen, aber falls sie noch da sind:
   verhindert Negative-Margins/volle Breite, ohne neue Abhängigkeiten. */
.login-wrapper .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* ===== Input-Felder ===== */

/* kompletter Block (Icon + Input): Rahmen + blau */
.login-wrapper .input-group {
    display: flex;
    align-items: center;
    height: 53px;
    border: 0.25px solid #C4C4C4 !important;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
    margin: 0;
}

    /* Abstand zwischen Username/Password (deine Inline paddings bleiben, wir ergänzen das hier) */
    .login-wrapper .input-group + .input-group {
        margin-top: 12px;
    }

/* Icon-Container: weiß, ohne Rahmen, ohne Trennlinie */
.login-wrapper .input-group-addon,
.login-wrapper .input-group-addon.form-control {
    width: 56px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
}

    /* Icon: größer (optisch „volle Höhe“) */
    .login-wrapper .input-group-addon img {
        height: 70%;
        width: auto;
        max-height: none;
        display: block;
        border: 0 !important;
    }

/* Input: transparent (damit blau sichtbar), ohne eigenen Rahmen/Shadow */
.login-wrapper input.form-control {
    min-height: 100%;
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    background:#fff;
    font-size: 18px;
    padding-left: 12px !important;
}

/* Entfernt ggf. Bootstrap-Kante zwischen Icon und Input (z.B. bei .form-control in input-group) */
.login-wrapper .input-group > .form-control {
    border-left: 0 !important;
}

/* Focus: blauer Rand ums ganze Feld */
.login-wrapper .input-group:focus-within {
    border-color: #66afe9;
    box-shadow: 0 0 8px rgba(102, 175, 233, 0.6);
}

/* ===== Button ===== */
.confirmation {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

/* Default (grau) */
#LoginButton {
    width: 150px;
    height: 50px;
    font-size: 18px;
    border-radius: 3px !important;
    border: 1px solid #C4C4C4 !important;
    background: #C4C4C4 !important;
    box-shadow: none !important;
}

    /* Aktiv (blau) – wird via JS gesetzt: #LoginButton.is-active */
    #LoginButton.is-active {
        border-color: #3085d6 !important;
        background: #3085d6 !important;
    }


.login-wrapper input.form-control::placeholder {
    color: #C4C4C4;
    font-family: "Open Sans Hebrew", "Open Sans", Arial, sans-serif;
    font-size: 26px;
    font-style: italic;
    font-weight: 400;
    letter-spacing: 0.26px;
    opacity: 1;
}

.login-wrapper input.form-control::-webkit-input-placeholder {
    color: #C4C4C4;
    font-family: "Open Sans Hebrew", "Open Sans", Arial, sans-serif;
    font-size: 26px;
    font-style: italic;
    font-weight: 400;
    letter-spacing: 0.26px;
}
.login-wrapper input.form-control {
    color: #666;
    font-family: "Open Sans Hebrew", "Open Sans", Arial, sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    letter-spacing: 0.2px;
    height: 100% !important;
    min-height: 100% !important;
    display: flex;
    align-items: center;
}
.login-wrapper input:-webkit-autofill,
.login-wrapper input:-webkit-autofill:hover,
.login-wrapper input:-webkit-autofill:focus {
    -webkit-text-fill-color: #666 !important;
    box-shadow: 0 0 0 1000px #ffffff inset !important;
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
    transition: background-color 5000s ease-in-out 0s;
    height: 100% !important;
}
.eye-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px; /* nicht 100% – sonst ist der Strich riesig/seltsam */
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    padding: 0;
    z-index: 100;
}

    .eye-btn img {
        width: 25px;
        height: 25px;
        display: block;
    }

    /* Strich MUSS über dem img liegen */
    .eye-btn.is-hidden::after {
        content: "";
        position: absolute;
        left: -3px;
        right: -3px;
        top: 50%;
        height: 2px;
        background: #6f7f89;
        transform: translateY(-50%) rotate(-25deg);
        z-index: 101; /* höher als img */
        pointer-events: none;
    }

.login-wrapper input:-webkit-autofill {
    background-color: #fff !important; 
}

.login-wrapper input.form-control {
    height: 100% !important;
    line-height: 53px; /* exakt gleiche Höhe wie input-group */
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.custom-button {
    width: 128px !important;
    height: 42px !important;
    border-radius: 4px !important;
    background: #C4C4C4 !important;
    box-shadow: 2px 2px 3px 0 rgba(0, 0, 0, 0.25) !important;
    /* Text */
    color: #FFF !important;
    font-family: "Open Sans", sans-serif !important;
    font-size: 24px !important;
    font-style: normal;
    font-weight: 400 !important;
    letter-spacing: 1.44px !important;
    /* Zentrierung */
    display: flex;
    align-items: center;
    justify-content: center;
    /* Reset Bootstrap */
    border: none !important;
    padding: 0 !important;
}

    .custom-button:hover {
        background: #1976d2 !important;
    }