/**
 * WSB Order Manager – Registrierungsformular (entkoppelt)
 *
 * Scoped Styles nur für das Registrierungsformular:
 * - Vollseite  /wsb-registrierung/  (.learn-press-form .thim-register-section)
 * - Eduma-Login-Popup               (.thim-popup-login .thim-register)
 *
 * Nutzt ausschließlich Eduma / LearnPress / ThimCore-Klassen und CSS-Variablen.
 * Keine eigenen Layout-Klassen (nur logische Zustände, falls nötig).
 */

/* ── Flex-Layout des Registrierungsformulars ─────────────────────────────── */
#wsb-registration-form {
    display: flex;
    column-gap: 15px;
    flex-flow: row wrap;
}

#wsb-registration-form > div {
    flex: 1;
    min-width: 170px;
}

#wsb-registration-form input,
#wsb-registration-form select,
#wsb-login-form input[type="text"],
#wsb-login-form input[type="password"] {
    width: 100%;
}

#wsb-registration-form .submit,
#wsb-login-form .login-submit {
    flex-basis: 100%;
    margin-top: 20px;
}

/* ── E-Mail-Status-Hinweis ───────────────────────────────────────────────── */
input.success {
    border-color: green;
}
input.error {
    border-color: #993B3B;
}
#wsb-email-status {
    font-size: 0.85em;
    color: #999;
}

/* ── WSB Auth-Wrapper (Vollseite + Popup) ───────────────────────────────── */
.wsb-auth-wrapper {
    max-width: 720px;
    margin: 0 auto;
}


/* Fallback-Overlay (ohne MFP) */
.wsb-auth-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.6);
    overflow-y: auto;
    padding: 40px 15px;
}

.wsb-auth-overlay.open {
    display: block;
}

.wsb-auth-overlay .wsb-auth-wrapper {
    max-width: 720px;
    margin: 0 auto;
}

/* ── Tabs ────────────────────────────────────────────────────────────────── */
.wsb-auth-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--thim-body-primary-color, #eee);
}

#wsb-login-popup .wsb-auth-tab,
#wsb-register-popup .wsb-auth-tab {
    flex: 1;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease-in-out;
    border-radius: 0;
    background-color: var(--thim-placeholder-color);
}
#wsb-login-popup .wsb-auth-tab:first-child,
#wsb-register-popup .wsb-auth-tab:first-child {
    border-start-start-radius: 4px;
}
#wsb-login-popup .wsb-auth-tab:last-child,
#wsb-register-popup .wsb-auth-tab:last-child {
    border-start-end-radius: 4px;
}

#wsb-login-popup .wsb-auth-tab:hover,
#wsb-register-popup .wsb-auth-tab:hover {
    background-color: var(--thim-button-hover-color);
}
#wsb-login-popup .wsb-auth-tab.active,
#wsb-register-popup .wsb-auth-tab.active {
    background-color: var(--thim-body-primary-color);
}

/* ── Panels (Toggle per CSS-Klasse auf .wsb-auth-wrapper) ────────────────── */
.wsb-auth-panel {
    display: none;
}

.wsb-auth-panel.active {
    display: block;
}

.wsb-auth-wrapper .wsb-login-panel.active,
.wsb-auth-wrapper .wsb-register-panel.active {
    display: block;
}

/* Fallback ohne JS: Login sichtbar, Register verborgen */
.wsb-auth-wrapper .wsb-register-panel {
    display: none;
}

.wsb-auth-wrapper.wsb-register-active .wsb-login-panel {
    display: none;
}

.wsb-auth-wrapper.wsb-register-active .wsb-register-panel {
    display: block;
}

/* Toggle-Fallback für Popup-Modus (kein .wsb-auth-wrapper-Elter nötig) */
.wsb-auth-popup-inner .wsb-login-panel.active,
.wsb-auth-popup-inner .wsb-register-panel.active {
    display: block;
}

.wsb-auth-popup-inner .wsb-register-panel {
    display: none;
}

.wsb-auth-popup-inner.wsb-register-active .wsb-login-panel {
    display: none;
}

.wsb-auth-popup-inner.wsb-register-active .wsb-register-panel {
    display: block;
}

/* ── Login-Formular (wp_login_form) ──────────────────────────────────────── */
#show_pass {
    top:auto;
    bottom:16px;
}

#wsb-login-form .login-remember {
    margin-bottom: 16px;
}

#wsb-login-form .button-primary {
    width: 100%;
    height: 40px;
    font-size: 1em;
}

/* ── Switch-Links (Login ↔ Register) ─────────────────────────────────────── */
.wsb-auth-panel .link-bottom {
    margin-top: 18px;
    font-size: 0.95em;
    color: #666;
}

.wsb-switch-tab {
    color: var(--thim-primary-color, #ffb606);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.wsb-switch-tab:hover {
    text-decoration: underline;
}

.lost-pass-link{
    margin: 0 0 15px;
    display: inline-block;
}