/**
 * Brandner Registration Enhancement Styles
 */

/* ==========================================================================
   Popup-Breite (etwas breiter fuer Registrierung)
   ========================================================================== */

#login-form-popup {
    max-width: 680px !important;
}

/* ==========================================================================
   Popup-Tabs (Anmelden / Registrieren)
   ========================================================================== */

.brandner-popup-container {
    padding: 0;
}

.brandner-popup-tabs {
    display: flex;
    border-bottom: 2px solid #e0e0e0;
    margin: 0;
    padding: 0;
    background: #fff;
    border-radius: 8px 8px 0 0;
}

.brandner-popup-tab {
    flex: 1;
    padding: 16px 20px;
    background: #fff;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    font-size: 16px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
    text-align: center;
    outline: none;
}

.brandner-popup-tab:hover {
    color: #1a2332;
    background: #f5f5f5;
}

.brandner-popup-tab.active {
    color: #1a2332;
    border-bottom-color: #08c;
}

/* Tab-Inhalte */
.brandner-tab-content {
    padding: 0;
}

.brandner-tab-content .featured-box {
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
}

.brandner-tab-content .box-content {
    padding: 20px 24px !important;
}

/* Tab-Wechsel-Links */
.brandner-switch-to-register,
.brandner-switch-to-login {
    font-size: 14px;
}

/* ==========================================================================
   Status-Meldungen
   ========================================================================== */

.brandner-status-error {
    color: #e74c3c !important;
    font-weight: 500;
}

p.status.loading {
    color: #666;
}

/* Input-Fehler Markierung */
input.brandner-input-error {
    border-color: #e74c3c !important;
}

/* ==========================================================================
   Passwort-Bestaetigung Feedback
   ========================================================================== */

.brandner-pw-match-msg {
    display: block;
    font-size: 12px;
    margin-top: 4px;
    padding: 2px 0;
}

.brandner-pw-match-msg-ok {
    color: #27ae60;
}

.brandner-pw-mismatch-msg {
    color: #e74c3c;
}

input.brandner-pw-match {
    border-color: #27ae60 !important;
}

input.brandner-pw-mismatch {
    border-color: #e74c3c !important;
}

/* ==========================================================================
   Aktivierungs-Bildschirm (nach DOI-Registrierung)
   ========================================================================== */

.brandner-activation-screen {
    margin: 0 auto;
    padding: 40px 30px;
    text-align: center;
}

/* Im Popup: kompaktere Variante */
.brandner-popup-activation {
    padding: 30px 24px;
}

.brandner-activation-icon {
    color: #08c;
    margin-bottom: 24px;
}

.brandner-activation-icon svg {
    display: inline-block;
}

.brandner-activation-title {
    font-size: 28px;
    font-weight: 700;
    color: #222;
    margin: 0 0 8px;
}

.brandner-activation-subtitle {
    font-size: 17px;
    color: #555;
    margin: 0 0 24px;
}

.brandner-activation-message {
    font-size: 15px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 24px;
}

.brandner-activation-message p {
    margin: 0 0 8px;
}

.brandner-activation-message strong {
    color: #111;
    word-break: break-all;
}

.brandner-activation-resent-notice {
    border-radius: 4px;
    padding: 10px 16px;
    margin-bottom: 24px;
    font-size: 14px;
}

.brandner-resent-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.brandner-resent-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.brandner-activation-help {
    background: #f7f7f7;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 20px 24px;
    margin-bottom: 24px;
    text-align: left;
}

.brandner-activation-help-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px;
}

.brandner-activation-help ul {
    margin: 0 0 16px;
    padding-left: 20px;
    font-size: 14px;
    color: #555;
    line-height: 1.7;
}

.brandner-activation-help ul li {
    list-style-type: disc;
}

.brandner-activation-resend-btn {
    display: inline-block;
    background: #08c;
    color: #fff !important;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    cursor: pointer;
    transition: background 0.2s;
}

.brandner-activation-resend-btn:hover {
    background: #006fa6;
    color: #fff !important;
}

.brandner-activation-resend-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.brandner-activation-back-link,
.brandner-activation-close-link {
    display: inline-block;
    font-size: 14px;
    color: #666 !important;
    text-decoration: none !important;
    transition: color 0.2s;
}

.brandner-activation-back-link:hover,
.brandner-activation-close-link:hover {
    color: #333 !important;
}

/* Fullpage "Jetzt registrieren" Link */
.brandner-fullpage-register-link {
    color: #1a2332 !important;
}

.brandner-fullpage-register-link:hover {
    text-decoration: underline !important;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 576px) {
    #login-form-popup {
        max-width: 100% !important;
    }

    .brandner-popup-tab {
        font-size: 13px;
        padding: 12px 10px;
    }

    .brandner-tab-content .box-content {
        padding: 16px !important;
    }

    .brandner-activation-screen {
        padding: 24px 16px;
    }

    .brandner-popup-activation {
        padding: 20px 16px;
    }

    .brandner-activation-title {
        font-size: 22px;
    }

    .brandner-activation-subtitle {
        font-size: 15px;
    }

    .brandner-activation-icon svg {
        width: 60px;
        height: 60px;
    }

    .brandner-activation-help {
        padding: 16px;
    }

    .brandner-activation-resend-btn {
        width: 100%;
        text-align: center;
    }
}

/* ==========================================================================
   Newsletter Checkbox + Datenschutz-Checkbox
   ========================================================================== */

.brandner-newsletter-section {
    margin-top: 12px;
    margin-bottom: 4px;
}

.brandner-checkbox-row {
    margin-bottom: 8px !important;
}

.brandner-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    font-weight: 400 !important;
    line-height: 1.5;
}

.brandner-checkbox-input {
    flex-shrink: 0;
    margin-top: 3px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.brandner-checkbox-text {
    font-size: 13px;
    color: #444;
}

.brandner-checkbox-text a {
    color: #08c;
    text-decoration: underline;
}

.brandner-checkbox-text a:hover {
    color: #006fa6;
}

.brandner-checkbox-text .required {
    color: #e74c3c;
}

/* Datenschutz-Checkbox Section */
.brandner-legal-notice {
    margin-top: 4px;
    margin-bottom: 4px;
}

/* ==========================================================================
   Aktivierungs-Erfolgsseite (nach E-Mail-Klick)
   ========================================================================== */

.brandner-activation-success {
    max-width: 500px;
    margin: 0 auto;
    padding: 40px 30px;
    text-align: center;
}

.brandner-success-icon {
    color: #27ae60;
    margin-bottom: 20px;
}

.brandner-success-icon svg {
    display: inline-block;
}

.brandner-activation-success h2 {
    font-size: 28px;
    font-weight: 700;
    color: #222;
    margin: 0 0 8px;
}

.brandner-activation-success p {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
    margin: 0 0 24px;
}

.brandner-success-btn {
    display: inline-block;
    background: #1a2332;
    color: #fff !important;
    border: none;
    border-radius: 4px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none !important;
    cursor: pointer;
    transition: background 0.2s;
}

.brandner-success-btn:hover {
    background: #2c3e50;
    color: #fff !important;
}

.brandner-success-btn-large {
    padding: 18px 48px;
    font-size: 18px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(26, 35, 50, 0.3);
}

.brandner-success-btn-large:hover {
    box-shadow: 0 6px 16px rgba(26, 35, 50, 0.4);
}

.brandner-success-hint {
    font-size: 14px;
    color: #777;
    margin: 0 0 28px;
}

@media (max-width: 576px) {
    .brandner-activation-success {
        padding: 24px 16px;
    }

    .brandner-activation-success h2 {
        font-size: 22px;
    }

    .brandner-success-btn {
        width: 100%;
        text-align: center;
    }

    .brandner-success-btn-large {
        padding: 16px 32px;
        font-size: 16px;
    }
}
