/* ── Auth / Login (nur layout/auth.php) ───────────────────────────────────── */
.page-auth {
    height: 100vh;
    overflow: hidden;
}

.auth-shell {
    display: flex;
    height: 100vh;
}

.auth-webseite-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 2;
}

/* Dark/Light-Umschalter oben rechts; eigener Hintergrund, damit er sich von der rechten Spalte abhebt */
.auth-theme-toggle {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--border-input);
    border-radius: 50%;
    background: var(--bg-white);
    color: var(--body-text);
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,.12);
    transition: background .18s ease, transform .15s ease;
}
.auth-theme-toggle .ti { font-size: 1.2rem; }
.auth-theme-toggle:hover { background: var(--bg-hover); }
.auth-theme-toggle:active { transform: translate(1px, 1px); }

/* ── Linke Spalte ── */
.auth-left {
    flex: 0 0 50%;
    background: var(--body-bg);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem;
    padding-top: 8vh;
    overflow-y: auto;
}

.auth-left-inner {
    width: 100%;
    max-width: 390px;
}

.page-signup .auth-left-inner {
    max-width: 480px;
}

.page-signup .auth-left {
    padding-top: 2vh;
}

/* Mehr Luft über dem Logo; mobil bleibt der kleine Abstand aus der Media Query unten */
@media (min-width: 769px) {
    .page-signup .auth-logo { margin-top: 1rem; }
}

.auth-card {
    background: rgba(255,255,255,.4);
    backdrop-filter: blur(4px) saturate(160%);
    -webkit-backdrop-filter: blur(4px) saturate(160%);
    border: 1px solid rgba(255,255,255,.4);
    border-radius: 16px;
    padding: 2rem 2rem 1.75rem;
    box-shadow: var(--glass-shadow), 0 16px 48px -8px rgba(0,0,0,.14);
}

[data-theme="dark"] .auth-card {
    background: rgba(20,20,22,.3);
    border-color: rgba(255,255,255,.14);
}

.auth-logo {
  display: block;
  max-height: 50px;
  margin: 0 auto 2.5rem;
  max-width: 200px;
}

/* ── Rechte Spalte ── */
.auth-right {
    flex: 0 0 50%;
    background: var(--bg-white);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

#auth-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.auth-right-inner {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    overflow: hidden;
}

.auth-promo-img {
    display: block;
    width: 100%;
    height: auto;
}

.auth-claim {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--body-text);
    line-height: 1.3;
    margin: 0 0 2rem;
}

.auth-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.auth-features li {
    display: flex;
    align-items: center;
    gap: .75rem;
    color: var(--muted);
    font-size: .95rem;
    font-weight: 500;
}

.auth-features .ti {
    font-size: 1.2rem;
    color: var(--accent);
    flex-shrink: 0;
}


.auth-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--body-text);
    margin: 0 0 1.5rem;
    text-align: center;
}

/* Unterzeile direkt unter dem Titel (Probezugang) */
.auth-title--mit-untertitel { margin-bottom: .35rem; }
.auth-untertitel {
    margin: 0 auto 1.5rem;
    max-width: 100%;
    text-align: center;
    color: var(--muted-heavy);
    font-size: .95rem;
}

.auth-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.auth-success-icon {
    font-size: 4rem;
    color: #a8ea6f;
    margin-bottom: 1.5rem;
    border: 2px solid transparent;
}
.auth-success .auth-title { margin-bottom: .5rem; }
.auth-success-text {
    color: var(--muted);
    margin: 0 0 2rem;
}
.auth-success .btn { width: 100%; }


.auth-form .form-group {
  margin-bottom: 15px;
}

.auth-form .form-label {
    display: block;
    font-size: .9rem;
    font-weight: 400;
    color: var(--muted-heavy);
}

.form-label-hint {
    font-size: .8rem;
    color: var(--muted);
}

.auth-form .form-input {
    width: 100%;
    padding: .85rem 1.1rem;
    font-size: 1rem;
    border: 1px solid var(--border-input);
    border-radius: 8px;
    background: var(--bg-hover);
    color: var(--body-text);
    transition: border-color .15s, box-shadow .15s;
    outline: none;
}

.auth-form .form-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(74,96,201,.15);
}

.auth-form .form-input::placeholder { color: var(--muted-light); }

/* ── Floating Labels ── */
.form-group--floating {
    position: relative;
    margin-top: .3rem;
}

.form-group--floating .form-input {
    padding-top: 1.2rem !important;
    padding-bottom: .3rem !important;
    padding-left: .8rem !important;
}

.form-group--floating .form-input:not(:focus)::placeholder {
    color: transparent;
}

.form-group--floating .form-label {
    position: absolute;
    left: .8rem;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    max-width: calc(100% - 2.2rem);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 1rem;
    color: var(--muted);
    transition: top .15s ease, font-size .15s ease, color .15s ease;
}

.form-group--floating .form-input:focus + .form-label,
.form-group--floating .form-input:not(:placeholder-shown) + .form-label {
    top: .3rem;
    transform: translateY(0);
    font-size: .68rem;
    color: var(--muted-heavy);
}

.input-password-wrap .form-label {
    max-width: calc(100% - 4.3rem);
}

.auth-form .form-input:-webkit-autofill,
.auth-form .form-input:-webkit-autofill:hover,
.auth-form .form-input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px var(--bg-hover) inset;
    -webkit-text-fill-color: var(--body-text);
    animation-name: autofill-font;
    animation-fill-mode: both;
}
@keyframes autofill-font {
    to { font-family: 'Mulish', system-ui, sans-serif; font-size: 1.05rem; font-weight: 600; }
}

.auth-remember {
    margin-top: 1rem;
}

.auth-remember-label {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .88rem;
    color: var(--muted);
    cursor: pointer;
    user-select: none;
}

.auth-remember-label input[type="checkbox"] {
    cursor: pointer;
}

.btn.btn-block {
    width: 100%;
    justify-content: center;
    margin-top: 1.5rem;
    padding: .75rem 1rem;
    font-size: 1rem;
}

.auth-hinweis {
    margin-top: 2.75rem;
    text-align: center;
}
/* Mehrere Links in einer Zeile (Login: „Passwort vergessen?“ und „Zugang erstellen“) */
.auth-hinweis-link { margin-left: 1.75rem; }
/* „Passwort vergessen“: zweiter Link direkt unter „Code erneut senden“ */
.auth-hinweis--eng { margin-top: .75rem; }



/* ── Auth Promo (rechte Spalte) ───────────────────────────────────────────── */
.auth-promo-wrap {
  position: relative;
  display: block;
  width: 100%;
}

.auth-promo-logo {
  position: absolute;
  top: 33%;
  left: 41.8%;
  width: 12%;
  height: auto;
  pointer-events: none;
  opacity: 0;
  animation: promo-fade-in 0.6s ease forwards 0.3s;
}

/* App-Symbol statt Balken (Ferienzentrum/Fewo24, auth.php): quadratisch, daher etwas höher ansetzen */
.auth-promo-logo--icon { top: calc(33% - 5px); animation-duration: 2s; }

/* Balken des Logos blenden nacheinander ein (rot, blau, gelb), nachdem das Logo selbst eingeblendet ist */
.auth-promo-logo .promo-bar-rot,
.auth-promo-logo .promo-bar-blau,
.auth-promo-logo .promo-bar-gelb { opacity: 0; animation: promo-bar-in .6s ease forwards; }
.auth-promo-logo .promo-bar-rot  { animation-delay: .5s; }
.auth-promo-logo .promo-bar-blau { animation-delay: 1s; }
.auth-promo-logo .promo-bar-gelb { animation-delay: 1.5s; }

@keyframes promo-bar-in {
  to { opacity: 1; }
}

.auth-promo-tag {
  background: var(--accent-yellow);
  color: #444; /* fest, damit der Tag den hellen Dark-Mode-Text von .auth-promo-text nicht erbt */
  padding: 3px 15px;
  border-radius: 12px;
  display: inline-block;
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: .5rem;
}
/* Markenfarbe je Portal (wie --accent in app.css); nur Fewo24 (2) blau, alle anderen bleiben gelb */
.auth-promo-tag--por2 { background: #327dc8; color: #fff; }


.auth-promo-text {
  text-align: center;
  font-size: 1.8rem;
  line-height: 1.5;
  color: #444;
  margin-bottom: 1.5rem;
  padding: 0 1rem;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
}
[data-theme="dark"] .auth-promo-text { color: var(--body-text); }

/* Klasse wird per Skript gesetzt, sobald die Balken des Logos fertig eingeblendet sind (auth.php) */
.auth-promo-text--sichtbar {
  animation: promo-fade-in .8s ease forwards;
}

@media (max-width: 768px) {
    .auth-right { display: none; }

    .auth-theme-toggle { top: 10px; right: 10px; }

    .auth-left {
        flex: 1;
        padding: 2rem 1.25rem;
        padding-top: 10px;
        background: var(--body-bg);
    }

    .auth-title {
        font-size: 1.2rem;
        margin: 0 0 15px;
    }

    .auth-left-inner {
        max-width: 100%;
    }

    .auth-logo {
        margin-top: 10px;
        margin-bottom: 20px;
    }

    .auth-card {
        padding: 1.5rem 1.25rem;
    }

    .auth-form .form-input {
        font-size: 1.1rem !important;
        padding: 20px 16px !important;
    }

    .form-group--floating .form-input {
        padding-top: 26px !important;
        padding-bottom: 10px !important;
        padding-left: .8rem !important;
    }

    .form-group--floating .form-input:focus + .form-label,
    .form-group--floating .form-input:not(:placeholder-shown) + .form-label {
        font-size: .78rem !important;
    }

    .btn.btn-block {
        padding: .75rem !important;
        font-size: 1.1rem !important;
    }
}
