/* =========================================================
   Joomla-Registrierung – Sternenbürger Auth-Design
   ========================================================= */

.registration-form-wrapper {
    --auth-red: #ef3439;
    --auth-panel: rgba(17, 18, 23, 0.94);
    --auth-field: #22252d;
    --auth-border: rgba(120, 126, 140, 0.28);
    box-sizing: border-box;
    width: min(100%, 780px);
    margin: clamp(12px, 3vw, 38px) auto;
    padding: clamp(22px, 4vw, 38px);
    color: #f5f5f7;
    border: 1px solid rgba(239, 52, 57, 0.52) !important;
    border-left: 4px solid var(--auth-red) !important;
    border-radius: 14px !important;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.025), transparent 38%),
        var(--auth-panel) !important;
    box-shadow:
        0 26px 70px rgba(0, 0, 0, 0.56),
        inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

.registration-form-wrapper .dstb-auth-header {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.registration-form-wrapper .dstb-auth-kicker {
    display: block;
    margin-bottom: 8px;
    color: #ff6b70;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.registration-form-wrapper .dstb-auth-header h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.7rem, 4vw, 2.4rem);
    line-height: 1.08;
}

.registration-form-wrapper .dstb-auth-header p {
    margin: 10px 0 0;
    color: #aeb1ba;
    font-size: 0.98rem;
    line-height: 1.55;
}

.registration-form-box {
    box-sizing: border-box;
    padding: clamp(16px, 3vw, 26px);
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 11px;
    background: rgba(8, 9, 13, 0.38);
}

#member-registration,
#member-registration .form-fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0 !important;
    background: transparent !important;
}

#member-registration .form-fieldset + .form-fieldset {
    margin-top: 4px;
}

#member-registration .control-group,
#member-registration .form-group {
    display: block;
    margin: 0 0 17px;
}

#member-registration .dstb-registration-field {
    margin: 0;
}

#member-registration .control-label,
#member-registration label {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    align-items: baseline;
    margin: 0 0 7px;
    color: #f0f0f3;
    font-size: 0.92rem;
    font-weight: 700;
}

#member-registration .controls {
    width: 100%;
    margin: 0;
}

#member-registration input[type="text"],
#member-registration input[type="email"],
#member-registration input[type="password"],
#member-registration select,
#member-registration textarea,
#member-registration .form-control {
    box-sizing: border-box;
    width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 11px 13px;
    color: #fff !important;
    border: 1px solid var(--auth-border);
    border-radius: 8px;
    outline: none;
    background: var(--auth-field) !important;
    box-shadow: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

#member-registration input:focus,
#member-registration select:focus,
#member-registration textarea:focus,
#member-registration .form-control:focus {
    border-color: rgba(239, 52, 57, 0.82);
    background: #272a33 !important;
    box-shadow: 0 0 0 3px rgba(239, 52, 57, 0.14);
}

#member-registration .form-text,
#member-registration .text-muted,
#member-registration small {
    display: block;
    margin-top: 6px;
    color: #9fa3ad !important;
    font-size: 0.78rem;
    line-height: 1.45;
}

#member-registration label.invalid,
#member-registration .form-control-feedback,
#member-registration .invalid-feedback {
    display: block;
    width: 100%;
    margin: 6px 0 0;
    color: #ff7a7f !important;
    font-size: 0.78rem;
    line-height: 1.35;
}

#member-registration [id*="password"][id*="rules"],
#member-registration .password-group + .form-text {
    box-sizing: border-box;
    margin: 7px 0 0;
    padding: 9px 11px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.025);
    color: #aeb1ba !important;
    font-size: 0.76rem;
    line-height: 1.42;
}

#member-registration meter {
    display: block;
    width: 100%;
    height: 6px;
    margin: 8px 0 0;
    overflow: hidden;
    border: 0;
    border-radius: 999px;
    background: #292c34;
}

#member-registration meter::-webkit-meter-bar {
    border: 0;
    border-radius: 999px;
    background: #292c34;
}

#member-registration meter::-webkit-meter-optimum-value {
    background: #2ea865;
}

.dstb-captcha-field {
    margin-top: 22px !important;
    padding: 16px;
    border: 1px solid rgba(239, 52, 57, 0.26);
    border-left: 3px solid var(--auth-red);
    border-radius: 9px;
    background: rgba(0, 0, 0, 0.22);
}

.dstb-captcha-field .dstb-captcha-help {
    margin: -1px 0 12px;
    color: #9fa3ad;
    font-size: 0.8rem;
    line-height: 1.45;
}

.pflichtfeld-hinweis {
    margin: 4px 0 16px;
    color: #ff7a7f;
    font-size: 0.8rem;
    font-weight: 700;
}

.form-submit-wrapper {
    margin-top: 12px;
}

.register-btn {
    box-sizing: border-box;
    width: 100%;
    min-height: 50px;
    padding: 12px 18px;
    color: #fff !important;
    border: 1px solid #ff4a50 !important;
    border-radius: 8px;
    background: linear-gradient(180deg, #f13a40, #c82128) !important;
    box-shadow: 0 10px 24px rgba(199, 27, 34, 0.24);
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.register-btn:hover,
.register-btn:focus-visible {
    opacity: 1;
    color: #fff !important;
    background: linear-gradient(180deg, #ff4b51, #d9272e) !important;
    box-shadow: 0 12px 28px rgba(221, 36, 43, 0.34);
    transform: translateY(-1px);
}

.registration-success-message {
    padding: 20px;
    color: #dff7e9;
    border: 1px solid rgba(46, 168, 101, 0.48);
    border-left: 4px solid #2ea865;
    border-radius: 9px;
    background: rgba(20, 110, 62, 0.18);
    text-align: left;
}

.registration-success-message h3 {
    margin: 0 0 8px;
    color: #65d895;
}

.registration-success-message p {
    margin: 0;
    line-height: 1.55;
}

.input-password-toggle,
.password-wrapper .input-password-toggle-wrapper {
    display: none !important;
}

@media (max-width: 680px) {
    .registration-form-wrapper {
        width: 100%;
        padding: 20px 14px;
        border-left-width: 3px !important;
    }

    .registration-form-box {
        padding: 15px 12px;
    }

    .dstb-captcha-field {
        padding: 13px 10px;
    }
}
