.mb-register-wrap {
    max-width: 480px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.mb-reg-field {
    margin-bottom: 20px;
}

.mb-reg-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.mb-req { color: #e1306c; }
.mb-reg-optional { font-weight: 400; color: #888; font-size: 13px; }

.mb-reg-field input[type="text"],
.mb-reg-field input[type="email"],
.mb-reg-field input[type="password"],
.mb-reg-field select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    box-sizing: border-box;
    font-family: inherit;
    transition: border-color 0.2s;
}

.mb-reg-field input:focus,
.mb-reg-field select:focus {
    outline: none;
    border-color: #e1306c;
}

.mb-reg-field input.mb-field-invalid { border-color: #d32f2f; }

.mb-field-hint {
    display: block;
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}

.mb-field-error {
    display: block;
    font-size: 13px;
    color: #d32f2f;
    margin-top: 4px;
    min-height: 18px;
}

.mb-password-strength {
    height: 4px;
    border-radius: 2px;
    margin-top: 6px;
    background: #eee;
    position: relative;
    overflow: hidden;
}

.mb-password-strength::after {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    border-radius: 2px;
    transition: width 0.3s, background 0.3s;
}

.mb-password-strength[data-strength="weak"]::after   { width: 33%; background: #d32f2f; }
.mb-password-strength[data-strength="fair"]::after   { width: 66%; background: #f57c00; }
.mb-password-strength[data-strength="strong"]::after { width: 100%; background: #2e7d32; }

.mb-password-strength-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    margin-top: 3px;
}

.mb-password-strength-label[data-strength="weak"]   { color: #d32f2f; }
.mb-password-strength-label[data-strength="fair"]   { color: #f57c00; }
.mb-password-strength-label[data-strength="strong"] { color: #2e7d32; }

.mb-username-status {
    display: block;
    font-size: 13px;
    margin-top: 4px;
    min-height: 18px;
    font-weight: 500;
}

.mb-username-ok   { color: #2e7d32; }
.mb-username-taken { color: #d32f2f; }

.mb-reg-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 4px;
}

.mb-reg-check-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
}

.mb-reg-check-label input[type="checkbox"] {
    width: auto;
    margin: 0;
    cursor: pointer;
}

.mb-reg-message {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 16px;
}

.mb-reg-error   { background: #fdecea; color: #c62828; border: 1px solid #ef9a9a; }
.mb-reg-success { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }

.mb-reg-actions { margin-top: 24px; }

.mb-reg-actions .mb-btn {
    width: 100%;
    padding: 13px;
    font-size: 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 700;
}

.mb-reg-login-link {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-top: 16px;
}

.mb-reg-login-link a { color: #e1306c; text-decoration: none; }
.mb-reg-login-link a:hover { text-decoration: underline; }

.mb-login-wrap {
    max-width: 420px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.mb-login-links {
    margin-top: 16px;
    font-size: 13px;
    color: #666;
    text-align: center;
}

.mb-login-links a { color: #e1306c; text-decoration: none; }
.mb-login-links a:hover { text-decoration: underline; }

@media (max-width: 520px) {
    .mb-register-wrap,
    .mb-login-wrap { padding: 0 16px; }
}
