/**
 * Public Styles for MQTT Registration Form
 */

.mqtt-register-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.mqtt-register-form {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 30px;
}

.mqtt-form-field {
    margin-bottom: 20px;
}

.mqtt-form-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.mqtt-form-field input[type="text"],
.mqtt-form-field input[type="email"],
.mqtt-form-field select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.mqtt-form-field input:focus,
.mqtt-form-field select:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

.mqtt-form-field small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

.mqtt-submit-btn {
    width: 100%;
    padding: 12px 20px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.mqtt-submit-btn:hover {
    background: #135e96;
}

.mqtt-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Form Notice */
.mqtt-form-notice {
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 14px;
}

.mqtt-form-notice.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.mqtt-form-notice.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Form Info */
.mqtt-form-info {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.mqtt-form-info p {
    font-weight: 600;
    margin-bottom: 10px;
}

.mqtt-form-info ul {
    list-style: none;
    padding-left: 0;
}

.mqtt-form-info li {
    padding: 5px 0 5px 25px;
    position: relative;
}

.mqtt-form-info li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #2271b1;
    font-weight: bold;
}

#selected-group {
    font-family: monospace;
    background: #f0f0f1;
    padding: 2px 6px;
    border-radius: 3px;
}

/* Loading State */
.mqtt-loading-form {
    position: relative;
}

.mqtt-loading-form:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive */
@media (max-width: 600px) {
    .mqtt-register-form-wrapper {
        padding: 10px;
    }
    
    .mqtt-register-form {
        padding: 20px;
    }
}
