/* ── 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;
}

/* ── 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: 12vh;
    overflow-y: auto;
}

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

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

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

.auth-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 2rem 2rem 1.75rem;
    box-shadow: 0 4px 24px rgba(0,0,0,.08);
}

.auth-logo {
  display: block;
  height: 40px;
  margin: 0 auto 2.5rem;
}

/* ── Rechte Spalte ── */
.auth-right {
    flex: 0 0 50%;
    background: #fff;
    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 2rem;
    text-align: center;
}

.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;
}
.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: 1.5rem;
}

.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(--surface-muted);
    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-light);
    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(--surface-muted) 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-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;
}



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

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

.auth-promo-tag {
  background: var(--accent-yellow);
  padding: 3px 15px;
  border-radius: 12px;
  display: inline-block;
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: .5rem;
  transition: opacity .4s ease;
}

.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;
  animation: promo-fade-in .8s ease forwards 3s;
}

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

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

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

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

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

    .auth-form .form-input {
        font-size: 1rem;
        padding: .75rem 1rem;
    }

    .btn-block {
        padding: .75rem;
        font-size: 1rem;
    }
}
