/* =========================
   GRUNDLAYOUT
========================= */
body {
    margin: 0;
    background: black;
    color: white;
    font-family: Arial, sans-serif;
}

/* =========================
   LOGIN ZENTRIERUNG (NEU)
========================= */
.center {
    height: 100vh;
    display: flex;
    justify-content: center;   /* horizontal */
    align-items: center;       /* vertikal */
}

/* =========================
   CONTAINER
========================= */
.container {
    display: flex;
    flex-direction: column;    /* untereinander */
    align-items: center;       /* mittig */
    text-align: center;
    max-width: 1000px;
    margin: auto;
    padding: 40px;
    gap: 20px;
}

/* =========================
   FORM (NEU – wichtig!)
========================= */
form {
    display: flex;
    flex-direction: column;    /* Input über Button */
    align-items: center;
    gap: 14px;
}

/* =========================
   LOGOS
========================= */
.logo-sgh {
    max-width: 120px;
    opacity: 0.9;
}

/* =========================
   LOGIN LOGO (INDEX.PHP)
========================= */
.logo-login {
    max-width: 220px;
    width: 100%;
    height: auto;
    margin-bottom: 20px;
}

/* =========================
   TEXTE
========================= */
h1, h2 {
    margin: 10px 0;
}

.subtitle {
    font-size: 14px;
    color: #aaa;
    margin-bottom: 10px;
}

/* =========================
   SLIDESHOW
========================= */
.slideshow {
    position: relative;
    max-width: 600px;
    width: 100%;
    margin-bottom: 40px;
}

.slideshow img {
    width: 100%;
    border-radius: 12px;
    cursor: pointer;
    display: block;
}

/* =========================
   CONTROLS
========================= */
.controls {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.controls .nav,
.controls .toggle {
    background: rgba(255,255,255,0.9);
    color: black;
    border: none;
    font-size: 20px;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
}

/* =========================
   DOWNLOAD BUTTON
========================= */
.slideshow .download {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: #2ecc71;
    color: black;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 14px;
}

/* =========================
   DATEINAME
========================= */
.filename {
    margin-top: 8px;
    font-size: 13px;
    color: #bbb;
    word-break: break-all;
}

/* =========================
   LIGHTBOX
========================= */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    cursor: zoom-out;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
}

/* =========================
   FOOTER
========================= */
footer {
    margin-top: 40px;
    font-size: 14px;
    color: #aaa;
}

footer img { 
    max-width: 120px; 
    margin-top: 10px; 
}
