/* ==========================================================================
   VIKZ Portal - Anmeldebereich (Login, Sifremi Unuttum, Sifre Sifirla)
   Eigenstaendiges Design, losgeloest von Inspinia.
   Silbrig-milchiges Glas auf Hintergrundbild, Akzente in den VIKZ-Logofarben.
   ========================================================================== */

:root {
    --vz-petrol: #007381;
    --vz-petrol-d: #005b66;
    --vz-teal: #2E9BA8;
    --vz-lime: #CBD300;
    --vz-ink: #0f172a;
    --vz-muted: #475569;
}

* { box-sizing: border-box; }

html, body {
    height: 100%;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Buehne ---------- */
.vlogin-bg {
    min-height: 100vh;
    width: 100%;
    background: url('../Images/login_image.jpg') center center / cover no-repeat fixed;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 24px clamp(24px, 8vw, 120px);
    position: relative;
}

.vlogin-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(15,58,64,.30) 0%, rgba(30,41,59,.06) 42%, rgba(255,255,255,0) 70%);
    pointer-events: none;
}

/* ---------- Glaskarte ---------- */
.vlogin-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    padding: 38px 34px 26px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(255,255,255,.64) 0%, rgba(224,232,235,.44) 100%);
    -webkit-backdrop-filter: blur(22px) saturate(140%);
    backdrop-filter: blur(22px) saturate(140%);
    border: 1px solid rgba(255,255,255,.65);
    box-shadow: 0 26px 60px rgba(15,23,42,.30), inset 0 1px 0 rgba(255,255,255,.65);
    animation: vloginIn .5s cubic-bezier(.2,.7,.2,1) both;
}

@keyframes vloginIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

.vlogin-logo {
    display: block;
    width: 132px;
    height: auto;
    margin: 0 auto 14px;
    filter: drop-shadow(0 2px 4px rgba(15,23,42,.15));
}

.vlogin-title {
    text-align: center;
    margin: 0 0 6px;
    color: var(--vz-ink);
    font-size: 19px;
    font-weight: 800;
    letter-spacing: .2px;
}

.vlogin-welcome, .vlogin-lead {
    text-align: center;
    margin: 0 0 20px;
    color: var(--vz-muted);
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.55;
}

/* ---------- Meldungen ---------- */
.vlogin-error, .vlogin-ok, .vlogin-info {
    margin: 0 0 16px;
    padding: 10px 13px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
}

.vlogin-error {
    background: rgba(220,38,38,.14);
    border: 1px solid rgba(220,38,38,.35);
    color: #991b1b;
    text-align: center;
}

.vlogin-ok {
    background: rgba(16,185,129,.15);
    border: 1px solid rgba(16,185,129,.40);
    color: #065f46;
    text-align: center;
}

.vlogin-info {
    background: rgba(0,115,129,.10);
    border: 1px solid rgba(0,115,129,.28);
    color: #04555f;
}

/* ---------- Felder ---------- */
.vlogin-label {
    display: block;
    margin: 0 0 6px 2px;
    font-size: 12.5px;
    font-weight: 700;
    color: #334155;
}

.vlogin-field {
    position: relative;
    margin-bottom: 15px;
}

.vlogin-field > i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 15px;
    pointer-events: none;
}

/* Icon mittig zum Eingabefeld, wenn ein Label darueber steht */
.vlogin-field.has-label > i { top: auto; bottom: 16px; transform: none; }

.vlogin-field input {
    width: 100%;
    height: 50px;
    padding: 0 16px 0 44px;
    border: 1px solid rgba(148,163,184,.55);
    border-radius: 13px;
    background: rgba(255,255,255,.58);
    color: var(--vz-ink);
    font-size: 15px;
    outline: none;
    transition: border-color .16s, box-shadow .16s, background .16s;
}

.vlogin-field input::placeholder { color: #64748b; }

.vlogin-field input:focus {
    border-color: var(--vz-petrol);
    background: rgba(255,255,255,.85);
    box-shadow: 0 0 0 4px rgba(0,115,129,.16);
}

/* Auge zum Ein-/Ausblenden des Passworts */
.vlogin-eye {
    position: absolute;
    right: 6px;
    bottom: 4px;
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    border-radius: 10px;
    font-size: 15px;
}

.vlogin-field.no-label .vlogin-eye { bottom: auto; top: 4px; }
.vlogin-eye:hover { color: var(--vz-petrol); background: rgba(0,115,129,.08); }

/* ---------- Passwortstaerke ---------- */
.vlogin-meter { margin: -6px 0 14px; }

.vlogin-meter .bar {
    height: 6px;
    border-radius: 999px;
    background: rgba(148,163,184,.35);
    overflow: hidden;
}

.vlogin-meter .bar > span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: #dc2626;
    transition: width .2s, background .2s;
}

.vlogin-meter .txt {
    margin-top: 5px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--vz-muted);
}

/* ---------- Regelliste ---------- */
.vlogin-rules {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255,255,255,.45);
    border: 1px solid rgba(148,163,184,.35);
    list-style: none;
}

.vlogin-rules li {
    font-size: 12.5px;
    color: var(--vz-muted);
    padding: 3px 0 3px 22px;
    position: relative;
    line-height: 1.45;
}

.vlogin-rules li::before {
    content: "\f111";
    font-family: FontAwesome;
    position: absolute;
    left: 2px;
    top: 4px;
    font-size: 8px;
    color: #94a3b8;
}

.vlogin-rules li.ok { color: #065f46; }
.vlogin-rules li.ok::before { content: "\f00c"; font-size: 11px; color: #10b981; top: 3px; }

/* ---------- Buttons ---------- */
.vlogin-btn {
    width: 100%;
    height: 50px;
    margin-top: 6px;
    border: 0;
    border-radius: 13px;
    cursor: pointer;
    background: linear-gradient(180deg, #00808f 0%, var(--vz-petrol) 55%, var(--vz-petrol-d) 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .3px;
    box-shadow: 0 10px 22px rgba(0,91,102,.35), inset 0 1px 0 rgba(255,255,255,.18);
    transition: filter .15s, transform .04s;
}

.vlogin-btn:hover { filter: brightness(1.09); }
.vlogin-btn:active { transform: translateY(1px); }
.vlogin-btn[disabled] { opacity: .55; cursor: not-allowed; filter: none; }

.vlogin-btn.ghost {
    background: rgba(255,255,255,.55);
    color: var(--vz-petrol);
    border: 1px solid rgba(0,115,129,.35);
    box-shadow: none;
}

.vlogin-btn.ghost:hover { background: rgba(255,255,255,.8); }

/* ---------- Links / Fuss ---------- */
.vlogin-links {
    text-align: center;
    margin-top: 16px;
}

.vlogin-links a {
    color: var(--vz-petrol);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.vlogin-links a:hover { text-decoration: underline; }

.vlogin-sep {
    margin: 18px 0 14px;
    border: 0;
    border-top: 1px solid rgba(148,163,184,.40);
}

.vlogin-foot {
    text-align: center;
    margin: 18px 0 0;
    color: var(--vz-muted);
    font-size: 11.5px;
}

.vlogin-help {
    margin: 0;
    font-size: 12px;
    color: var(--vz-muted);
    line-height: 1.55;
}

.vlogin-help b { color: #334155; }

@media (max-width: 640px) {
    .vlogin-bg { justify-content: center; padding: 18px; }
    .vlogin-card { padding: 30px 22px 22px; }
}
